<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster.. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127903#M43380</link>
    <description>&lt;P&gt;After distcp, do you see the same directory structure in target cluster? If yes, you should be able to import on target cluster as well. &lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 11:27:20 GMT</pubDate>
    <dc:creator>apathan</dc:creator>
    <dc:date>2016-10-13T11:27:20Z</dc:date>
    <item>
      <title>Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster..</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127900#M43377</link>
      <description>&lt;P&gt;HI..I want to migrate some hive table in Prod cluster to dev Cluster to i am doing like this&lt;/P&gt;&lt;P&gt;#export the hive table in some tem directory&lt;/P&gt;&lt;P&gt;#distcp the tem directory to tem directory in target cluster&lt;/P&gt;&lt;P&gt;#import the tem directory to hive database.&lt;/P&gt;&lt;P&gt;#01 hdfs@HADOOProot&amp;gt; hadoop fs -mkdir /apps/hive/warehouse/sankar5_dir &lt;/P&gt;&lt;P&gt;#02 export table db_c720_dcm.network_matchtables_act_creative to 'apps/hive/warehouse/sankar5_dir';&lt;/P&gt;&lt;P&gt;
#03 hadoop distcp hdfs://xx.xx.xx.xx:8020/apps/hive/warehouse/sankar5_dir hdfs://xx.xx.xx.xx//apps/hive/warehouse/sankar5_dir&lt;/P&gt;&lt;P&gt;FAILED: SemanticException [Error 10027]: Invalid path on 3 step&lt;/P&gt;&lt;P&gt;I could import in source cluster but after distcp ,i cont import in destination cluster &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 10:16:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127900#M43377</guid>
      <dc:creator>g_rao9704</dc:creator>
      <dc:date>2016-10-13T10:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster..</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127901#M43378</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/10953/grao9704.html" nodeid="10953"&gt;@rama&lt;/A&gt;&lt;P&gt;Can you check if the export table command result is stored in which directory?&lt;/P&gt;&lt;PRE&gt;export table db_c720_dcm.network_matchtables_act_creative to 'apps/hive/warehouse/sankar5_dir';&lt;/PRE&gt;&lt;P&gt;Actually when you execute the above command, the final data will be written to /user/&amp;lt;user_name&amp;gt;/apps/hive/warehouse/sankar5_dir directory in HDFS (of course, it will need to be writable by the current user).&lt;/P&gt;&lt;P&gt;So, please make the path exists in the expected directory before executing the distcp comamnd.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:03:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127901#M43378</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-13T11:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster..</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127902#M43379</link>
      <description>&lt;P&gt;Thanks you so much@&lt;A href="https://community.hortonworks.com/users/40/apathan.html"&gt;Ayub Pathan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have below information on user directory&lt;/P&gt;&lt;P&gt;hdfs@HADOOP:/root&amp;gt; hadoop fs -ls /user/hdfs/apps/hive/warehouse/sankar5_dir &lt;/P&gt;&lt;P&gt;Found 2 items&lt;/P&gt;&lt;P&gt;
-rw-r--r--   3hdfs hdfs       1882 2016-10-12 17:34 /user/hdfs/apps/hive/warehouse/sankar5_dir/_metadata&lt;/P&gt;&lt;P&gt;
drwxr-xr-x   - hdfs hdfs          0 2016-10-12 17:34 /user/hdfs/apps/hive/warehouse/sankar5_dir/data&lt;/P&gt;&lt;P&gt;I could able to import in source cluster but i could not in destination cluster after distcp &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:15:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127902#M43379</guid>
      <dc:creator>g_rao9704</dc:creator>
      <dc:date>2016-10-13T11:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster..</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127903#M43380</link>
      <description>&lt;P&gt;After distcp, do you see the same directory structure in target cluster? If yes, you should be able to import on target cluster as well. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 11:27:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127903#M43380</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-13T11:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster..</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127904#M43381</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/40/apathan.html"&gt;Ayub Pathan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;No con't see this directory..may i know reason for this ..and help me to out of this issue..&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 12:42:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127904#M43381</guid>
      <dc:creator>g_rao9704</dc:creator>
      <dc:date>2016-10-13T12:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster..</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127905#M43382</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10953/grao9704.html" nodeid="10953"&gt;@rama&lt;/A&gt; Is source and target cluster running the same hdfs version? If no, then use the below command.&lt;/P&gt;&lt;PRE&gt;hadoop distcp webhdfs://namenode1:&amp;lt;port&amp;gt;/source/dir webhdfs://namenode2:&amp;lt;port&amp;gt;/destination/dir
&lt;/PRE&gt;&lt;P&gt;NameNode URI and NameNode HTTP port should be provided in the source and destination command, if you are using webhdfs.&lt;/P&gt;&lt;P&gt;Also make sure to provide absolute paths while using distcp. (https://hadoop.apache.org/docs/r1.2.1/distcp.html).&lt;/P&gt;&lt;P&gt;In the actual question, I also observed that you are not using port number for the target cluster url..&lt;/P&gt;&lt;PRE&gt;hadoop distcp hdfs://xx.xx.xx.xx:8020/apps/hive/warehouse/sankar5_dir hdfs://xx.xx.xx.xx:&amp;lt;port&amp;gt;//apps/hive/warehouse/sankar5_dir&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:04:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127905#M43382</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2016-10-13T13:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hive table migration from one cluster to another using distcp, FAILED: SemanticException [Error 10027]: Invalid path on import statement in Target cluster..</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127906#M43383</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/40/apathan.html"&gt;Ayub Pathan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Both are using same version HDP 2.1.2&lt;/P&gt;&lt;P&gt;I for got mansion port but it has 8020 both cluster&lt;/P&gt;&lt;P&gt;export table db_c720_dcm.network_matchtables_act_ad to 'apps/hive/warehouse/sankar7_dir';&lt;/P&gt;&lt;P&gt;and i could see sankar7_dir in /user/hdfs/apps/hive/warehouse/sankar7_dir in source cluster...&lt;/P&gt;&lt;P&gt;hadoop distcp hdfs://xx.xx.xx.xx:8020/apps/hive/warehouse/sankar7_dir hdfs://yy.yy.yy.yy:8020/apps/hive/warehous                          e/sankar7_dir
16/10/13 01:01:05 INFO tools.DistCp: Input Options: DistCpOptions{atomicCommit=false, syncFolder=false, deleteMissing=false, ignoreFailures=fa                          lse, maxMaps=20, sslConfigurationFile='null', copyStrategy='uniformsize', sourceFileListing=null, sourcePaths=[hdfs:///xx.xx.xx.xx:8020/apps/h                          ive/warehouse/sankar7_dir], targetPath=hdfs://yy.yy.yy.yy4:8020/apps/hive/warehouse/sankar7_dir}
16/10/13 01:01:05 INFO client.RMProxy: &lt;/P&gt;&lt;P&gt;Connecting to ResourceManager at stlts8711/39.0.8.13:8050
16/10/13 01:01:06 ERROR tools.DistCp: Invalid input:
org.apache.hadoop.tools.CopyListing$InvalidInputException: hdfs:///xx.xx.xx.xx:8020/apps/hive/warehouse/sankar7_dir doesn't exist
        at &lt;/P&gt;&lt;P&gt;org.apache.hadoop.tools.GlobbedCopyListing.doBuildListing(GlobbedCopyListing.java:84)
        at org.apache.hadoop.tools.CopyListing.buildListing(CopyListing.java:80)
        at org.apache.hadoop.tools.DistCp.createInputFileListing(DistCp.java:327)
        at org.apache.hadoop.tools.DistCp.execute(DistCp.java:151)
        at org.apache.hadoop.tools.DistCp.run(DistCp.java:118)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.hadoop.tools.DistCp.main(DistCp.java:375) &lt;/P&gt;&lt;P&gt;hdfs:///xx.xx.xx.xx:8020/apps/hive/warehouse/sankar7_dir doesn't existIif see my error while doing Distcp with out creating sankar_7. But i export table to directory :.&lt;/P&gt;&lt;P&gt;export table db_c720_dcm.network_matchtables_act_ad to 'apps/hive/warehouse/sankar7_dir';&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:20:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-table-migration-from-one-cluster-to-another-using/m-p/127906#M43383</guid>
      <dc:creator>g_rao9704</dc:creator>
      <dc:date>2016-10-13T13:20:18Z</dc:date>
    </item>
  </channel>
</rss>

