Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the becustom domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home4/joyplace/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home4/joyplace/public_html/wp-includes/functions.php on line 6114
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
Warning: Cannot modify header information - headers already sent by (output started at /home4/joyplace/public_html/wp-includes/functions.php:6114) in /home4/joyplace/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1893
{"id":2121,"date":"2022-02-09T06:00:00","date_gmt":"2022-02-09T12:00:00","guid":{"rendered":"https:\/\/www.bigdatainrealworld.com\/?p=2121"},"modified":"2023-02-19T07:30:50","modified_gmt":"2023-02-19T13:30:50","slug":"how-to-find-out-if-a-directory-in-hdfs-is-empty-or-not","status":"publish","type":"post","link":"https:\/\/www.bigdatainrealworld.com\/how-to-find-out-if-a-directory-in-hdfs-is-empty-or-not\/","title":{"rendered":"How to find out if a directory in HDFS is empty or not?"},"content":{"rendered":"\n
Simple problem with a simple solution.<\/p>\n\n\n\n
Solution<\/h2>\n\n\n\n
Use hdfs dfs -count to get the count of files and directories inside the directory.<\/p>\n\n\n\n
You will see 4 columns in the output – DIR_COUNT, FILE_COUNT, CONTENT_SIZE, PATHNAME<\/p>\n\n\n\n
In this directory, we can see that the FILE_COUNT is 0 indicating the number of files is 0 in the directory.<\/p>\n","protected":false},"excerpt":{"rendered":"
Simple problem with a simple solution. Solution Use hdfs dfs -count to get the count of files and directories inside the directory. [hirw@wk1 ~]$ hdfs dfs [\u2026]<\/span><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-2121","post","type-post","status-publish","format-standard","hentry","category-hdfs"],"yoast_head":"\nHow to find out if a directory in HDFS is empty or not? - Big Data In Real World<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n