

{"id":53953,"date":"2019-04-06T15:35:13","date_gmt":"2019-04-06T10:05:13","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=53953"},"modified":"2020-02-05T17:45:38","modified_gmt":"2020-02-05T12:15:38","slug":"hadoop-copyfromlocal-command","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/","title":{"rendered":"3 Easy Steps to Execute Hadoop copyFromLocal Command"},"content":{"rendered":"<p>Hadoop file system shell commands have a similar structure to Unix commands. People working with Unix shell command find it easy to adapt to <a href=\"https:\/\/data-flair.training\/blogs\/top-hadoop-hdfs-commands-tutorial\/\"><strong>Hadoop Shell commands<\/strong><\/a>. These commands interact with HDFS and other file systems supported by Hadoop. For example, local file system, S3 file system and so on. Today, we will explore Hadoop copyFromLocal Command and its use.<\/p>\n<h2>Hadoop copyFromLocal<\/h2>\n<p>We use this command in Hadoop to copy the file from the local file system to <strong>Hadoop Distributed File System (HDFS)<\/strong>. Here is one restriction with this command and that is, the source file can reside only in the local file system.<\/p>\n<p>coprFromLocal has an optional parameter \u2013f which gets used to replace the files that already exist in the system. This is useful when we have to copy the same file again or update it. By default, the system will throw the error if we try to copy a file in the same directory in which it already exists. One way to update a file is to delete the file and copy it again and another way is to use \u2013f.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/commands-in-hadoop\/\">Have a look at most frequently used Hadoop Commands<\/a><\/strong><\/p>\n<h2>Shell Command<\/h2>\n<p>We can invoke the Hadoop file system by the following command:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hadoop fs &lt;args&gt;<\/pre>\n<p>When the command gets executed the output is sent to stdout and errors to stderr. In most cases, both are the console screen.<\/p>\n<p>We can also use the below method to invoke fs commands which is a synonym to hadoop fs:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs -&lt;command&gt; &lt;args&gt;<\/pre>\n<p>Below statement shows the usage of copyFromLocal command:-<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs \u2013copyFromLocal &lt;local-source&gt; URI<\/pre>\n<p>We can write the command with \u2013f option to overwrite the file if it is already present.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs \u2013copyFromLocal \u2013f &lt;local-source&gt; URI<\/pre>\n<p><strong>Recommended Reading &#8211; <a href=\"https:\/\/data-flair.training\/blogs\/hadoop-distributed-cache\/\">Hadoop Distributed Cache<\/a><\/strong><\/p>\n<h2>Steps to Execute copyFromLocal\u00a0Command<\/h2>\n<p>We have to perform the following steps to perform copyFromLocal command:-<\/p>\n<h4>1. Make directory<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs \u2013mkdir \/user\/copy_from_local_example<\/pre>\n<p>The above command is used to create a directory in HDFS.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs \u2013ls \/user<\/pre>\n<p>The above command is to check if the directory is created in HDFS.<\/p>\n<h4>2. Copying the local file into the directory in HDFS<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs \u2013copyFromLocal testfile.txt \/user\/copy_from_local_example<\/pre>\n<p>The above command copies the file testfile.txt from local filesystem to hdfs directory.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs \u2013ls \/user\/copy_from_local_example<\/pre>\n<p>The above command is to check the creation of testfile.txt in hdfs directory \/user\/copy_from_local_example<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/creation-of-testfile.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53970\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/creation-of-testfile.png\" alt=\"Hadoop copyFromLocal\" width=\"871\" height=\"147\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/creation-of-testfile.png 871w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/creation-of-testfile-150x25.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/creation-of-testfile-300x51.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/creation-of-testfile-768x130.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/creation-of-testfile-520x88.png 520w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/hadoop-namenode-automatic-failover\/\"><strong>Do you know about Hadoop Automatic Failover?<\/strong><\/a><\/p>\n<h4>3. Overwriting the existing file in HDFS<\/h4>\n<p>copyFromLocal command does not by default overwrite the existing files. If we try to copy the file with the same name in the same directory then we will get an error. We can see it from the below screenshot.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53974\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal.png\" alt=\"Hadoop copyFromLocal\" width=\"959\" height=\"137\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal.png 959w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-150x21.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-300x43.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-768x110.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-520x74.png 520w\" sizes=\"auto, (max-width: 959px) 100vw, 959px\" \/><\/a><\/p>\n<p>We have to use \u2013f option of copyFromLocal file to overwrite the file.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">hdfs dfs \u2013copyFromLocal \u2013f testfile.txt \/user\/copy_from_local_example<\/pre>\n<p>The above command will replace the existing file. To check whether the file has been successfully copied we use ls command. From the below screenshot we can see that file is indeed copied from the timestamp of 22:25 as compared to timestamp of 22:22 when the file was first created.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-f.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-53975\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-f.png\" alt=\"Hadoop copyFromLocal\" width=\"970\" height=\"183\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-f.png 970w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-f-150x28.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-f-300x57.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-f-768x145.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/copyFromLocal-f-520x98.png 520w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/a><\/p>\n<h2>Conclusion<\/h2>\n<p>Thus, copyFromLocal is one of the important commands of the <strong><a href=\"https:\/\/hadoop.apache.org\/\">Hadoop<\/a><\/strong> FS shell. We can use this command to load the input file of the <a href=\"https:\/\/data-flair.training\/blogs\/map-only-job-in-hadoop-mapreduce\/\"><strong>MapReduce job<\/strong><\/a> from the local file system to HDFS. In this article, we have taken an example to understand copyFromLocal command. And how to go about overwriting the already existing file. Still, if you have any doubt, feel free to ask through comments.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1163,&quot;href&quot;:&quot;https:\\\/\\\/hadoop.apache.org&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251008061344\\\/https:\\\/\\\/hadoop.apache.org\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-09 02:28:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-12 06:49:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-15 09:10:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-18 18:19:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-22 07:02:07&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-25 14:18:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-28 14:42:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2025-12-31 20:25:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-04 05:35:17&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-07 05:38:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-10 09:31:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-13 10:17:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-16 11:17:06&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-19 11:27:31&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-22 12:37:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-25 15:42:16&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-28 16:04:51&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-01-31 22:35:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-04 01:35:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-07 11:50:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-10 15:00:48&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-13 17:30:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-17 04:31:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-20 07:27:26&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-23 08:58:22&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-02-26 11:58:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-01 17:13:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-04 20:02:02&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-08 07:00:15&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-11 07:24:33&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-14 17:13:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-18 02:37:36&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-21 07:22:14&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-24 10:20:44&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-27 11:15:57&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-03-30 13:36:00&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-03 01:50:21&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-06 03:38:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-09 05:27:12&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-12 13:40:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-16 02:05:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-19 07:29:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-22 08:32:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-25 11:03:04&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-04-28 14:02:46&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-01 17:27:05&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-05 03:36:42&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-08 06:22:34&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-11 10:16:03&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-14 17:21:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-17 18:15:11&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-20 19:19:28&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-24 05:01:01&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-27 05:22:10&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-05-30 10:25:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-02 16:48:23&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-06 03:05:45&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-09 10:29:32&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-12 12:41:09&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-16 06:31:56&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-19 07:49:24&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-22 10:11:50&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-25 11:23:39&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-06-28 11:52:40&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-01 22:40:41&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-05 03:45:18&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-08 07:15:52&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-11 07:55:35&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-14 20:33:55&quot;,&quot;http_code&quot;:206},{&quot;date&quot;:&quot;2026-07-18 05:00:08&quot;,&quot;http_code&quot;:206}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-07-18 05:00:08&quot;,&quot;http_code&quot;:206},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hadoop file system shell commands have a similar structure to Unix commands. People working with Unix shell command find it easy to adapt to Hadoop Shell commands. These commands interact with HDFS and other&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":53997,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[5231,19491],"class_list":["post-53953","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hadoop","tag-hadoop-commands","tag-hadoop-copyfromlocal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>3 Easy Steps to Execute Hadoop copyFromLocal Command - DataFlair<\/title>\n<meta name=\"description\" content=\"What is Hadoop copyFromLocal and why to use it. Explore the steps to perform the copyFromLocal Command. Here you will see the Hadoop Shell Command\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"3 Easy Steps to Execute Hadoop copyFromLocal Command - DataFlair\" \/>\n<meta property=\"og:description\" content=\"What is Hadoop copyFromLocal and why to use it. Explore the steps to perform the copyFromLocal Command. Here you will see the Hadoop Shell Command\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-06T10:05:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-05T12:15:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/Hadoop-copyFromLocal.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"3 Easy Steps to Execute Hadoop copyFromLocal Command - DataFlair","description":"What is Hadoop copyFromLocal and why to use it. Explore the steps to perform the copyFromLocal Command. Here you will see the Hadoop Shell Command","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/","og_locale":"en_US","og_type":"article","og_title":"3 Easy Steps to Execute Hadoop copyFromLocal Command - DataFlair","og_description":"What is Hadoop copyFromLocal and why to use it. Explore the steps to perform the copyFromLocal Command. Here you will see the Hadoop Shell Command","og_url":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-04-06T10:05:13+00:00","article_modified_time":"2020-02-05T12:15:38+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/Hadoop-copyFromLocal.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"3 Easy Steps to Execute Hadoop copyFromLocal Command","datePublished":"2019-04-06T10:05:13+00:00","dateModified":"2020-02-05T12:15:38+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/"},"wordCount":555,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/Hadoop-copyFromLocal.jpg","keywords":["hadoop commands","Hadoop copyFromLocal"],"articleSection":["Hadoop Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/","url":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/","name":"3 Easy Steps to Execute Hadoop copyFromLocal Command - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/Hadoop-copyFromLocal.jpg","datePublished":"2019-04-06T10:05:13+00:00","dateModified":"2020-02-05T12:15:38+00:00","description":"What is Hadoop copyFromLocal and why to use it. Explore the steps to perform the copyFromLocal Command. Here you will see the Hadoop Shell Command","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/Hadoop-copyFromLocal.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/04\/Hadoop-copyFromLocal.jpg","width":1200,"height":628,"caption":"Hadoop copyFromLocal"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/hadoop-copyfromlocal-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Hadoop Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/hadoop\/"},{"@type":"ListItem","position":3,"name":"3 Easy Steps to Execute Hadoop copyFromLocal Command"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/53953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=53953"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/53953\/revisions"}],"predecessor-version":[{"id":75497,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/53953\/revisions\/75497"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/53997"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=53953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=53953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=53953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}