<?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 Not Able to run import command. it fails with invalid path in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Not-Able-to-run-import-command-it-fails-with-invalid-path/m-p/387499#M246334</link>
    <description>&lt;P&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;I am unable to run the import command for Hive, since it is failing with error invalid path.&lt;BR /&gt;I copied the table content to another folder and it has permission for hive user, but while running import command it says invalid path. i ran import command on the path where the source table location still it fails with same reason.&lt;BR /&gt;&lt;BR /&gt;Beeline version 3.1.3000.7.1.8.28-1 by Apache Hive&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@machine1 Log_Files]# sudo -u hive hadoop fs -ls /warehouse/tablespace/managed/hive/demo.db/test1/*&lt;BR /&gt;Found 1 items&lt;BR /&gt;-rw-r--r-- 3 hive hive 621 2024-05-02 16:05 /warehouse/tablespace/managed/hive/demo.db/test1/delta_0000004_0000004_0000/bucket_00000_0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@machine1 Log_Files]# sudo -u hive hadoop fs -ls /jay123/restore_jobid123243/jayesh/*&lt;BR /&gt;Found 1 items&lt;BR /&gt;drwxr-xr-x - hive hive 0 2024-05-02 16:05 /jay123/restore_jobid123243/jayesh/test1/delta_0000004_0000004_0000&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[root@machine1 Log_Files]# sudo -E -u hive beeline -u "jdbc:hive2://machine1.testride.com:2181,machine22.testride.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;;principal=hive/_HOST@hdpcluster.test;" -n hive --showHeader=false --outputformat=tsv2 -e "use demo; show create table test1;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CREATE TABLE `test1`(&lt;BR /&gt;`nm` int)&lt;BR /&gt;ROW FORMAT SERDE&lt;BR /&gt;'org.apache.hadoop.hive.ql.io.orc.OrcSerde'&lt;BR /&gt;STORED AS INPUTFORMAT&lt;BR /&gt;'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'&lt;BR /&gt;OUTPUTFORMAT&lt;BR /&gt;'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'&lt;BR /&gt;LOCATION&lt;BR /&gt;'hdfs://machine1.testride.com:8020/warehouse/tablespace/managed/hive/demo.db/test1'&lt;BR /&gt;TBLPROPERTIES (&lt;BR /&gt;'bucketing_version'='2',&lt;BR /&gt;'last_modified_by'='hive',&lt;BR /&gt;'last_modified_time'='1713262492',&lt;BR /&gt;'transactional'='true',&lt;BR /&gt;'transactional_properties'='default',&lt;BR /&gt;'transient_lastDdlTime'='1714646145')&lt;BR /&gt;17 rows selected (0.329 seconds)&lt;BR /&gt;&lt;BR /&gt;0: jdbc:hive2://machine1.testride.com:2181,machine2.t&amp;gt; use jayesh;import table test1 from '/jay123/restore_jobid123243/jayesh/test1';&lt;BR /&gt;INFO : Compiling command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217): use jayesh&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Created Hive schema: Schema(fieldSchemas:null, properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217); Time taken: 0.007 seconds&lt;BR /&gt;INFO : Executing command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217): use jayesh&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217); Time taken: 0.014 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;No rows affected (0.13 seconds)&lt;BR /&gt;Error: Error while compiling statement: FAILED: SemanticException [Error 10027]: Invalid path (state=42000,code=10027)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;0: jdbc:hive2://machine1.testride.com:2181,machine2.t&amp;gt; use jayesh;import table test1 from '/warehouse/tablespace/managed/hive/demo.db/test1';&lt;BR /&gt;INFO : Compiling command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e): use jayesh&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Created Hive schema: Schema(fieldSchemas:null, properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e); Time taken: 0.006 seconds&lt;BR /&gt;INFO : Executing command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e): use jayesh&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e); Time taken: 0.006 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;No rows affected (0.027 seconds)&lt;BR /&gt;Error: Error while compiling statement: FAILED: SemanticException [Error 10027]: Invalid path (state=42000,code=10027)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please help me here to understand what's the issue and how can i resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 12:03:22 GMT</pubDate>
    <dc:creator>jayes</dc:creator>
    <dc:date>2024-05-02T12:03:22Z</dc:date>
    <item>
      <title>Not Able to run import command. it fails with invalid path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-Able-to-run-import-command-it-fails-with-invalid-path/m-p/387499#M246334</link>
      <description>&lt;P&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;I am unable to run the import command for Hive, since it is failing with error invalid path.&lt;BR /&gt;I copied the table content to another folder and it has permission for hive user, but while running import command it says invalid path. i ran import command on the path where the source table location still it fails with same reason.&lt;BR /&gt;&lt;BR /&gt;Beeline version 3.1.3000.7.1.8.28-1 by Apache Hive&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@machine1 Log_Files]# sudo -u hive hadoop fs -ls /warehouse/tablespace/managed/hive/demo.db/test1/*&lt;BR /&gt;Found 1 items&lt;BR /&gt;-rw-r--r-- 3 hive hive 621 2024-05-02 16:05 /warehouse/tablespace/managed/hive/demo.db/test1/delta_0000004_0000004_0000/bucket_00000_0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[root@machine1 Log_Files]# sudo -u hive hadoop fs -ls /jay123/restore_jobid123243/jayesh/*&lt;BR /&gt;Found 1 items&lt;BR /&gt;drwxr-xr-x - hive hive 0 2024-05-02 16:05 /jay123/restore_jobid123243/jayesh/test1/delta_0000004_0000004_0000&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;[root@machine1 Log_Files]# sudo -E -u hive beeline -u "jdbc:hive2://machine1.testride.com:2181,machine22.testride.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2;;principal=hive/_HOST@hdpcluster.test;" -n hive --showHeader=false --outputformat=tsv2 -e "use demo; show create table test1;"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CREATE TABLE `test1`(&lt;BR /&gt;`nm` int)&lt;BR /&gt;ROW FORMAT SERDE&lt;BR /&gt;'org.apache.hadoop.hive.ql.io.orc.OrcSerde'&lt;BR /&gt;STORED AS INPUTFORMAT&lt;BR /&gt;'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'&lt;BR /&gt;OUTPUTFORMAT&lt;BR /&gt;'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'&lt;BR /&gt;LOCATION&lt;BR /&gt;'hdfs://machine1.testride.com:8020/warehouse/tablespace/managed/hive/demo.db/test1'&lt;BR /&gt;TBLPROPERTIES (&lt;BR /&gt;'bucketing_version'='2',&lt;BR /&gt;'last_modified_by'='hive',&lt;BR /&gt;'last_modified_time'='1713262492',&lt;BR /&gt;'transactional'='true',&lt;BR /&gt;'transactional_properties'='default',&lt;BR /&gt;'transient_lastDdlTime'='1714646145')&lt;BR /&gt;17 rows selected (0.329 seconds)&lt;BR /&gt;&lt;BR /&gt;0: jdbc:hive2://machine1.testride.com:2181,machine2.t&amp;gt; use jayesh;import table test1 from '/jay123/restore_jobid123243/jayesh/test1';&lt;BR /&gt;INFO : Compiling command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217): use jayesh&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Created Hive schema: Schema(fieldSchemas:null, properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217); Time taken: 0.007 seconds&lt;BR /&gt;INFO : Executing command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217): use jayesh&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20240502173023_4e2433fa-dc38-4357-a5be-90892c65a217); Time taken: 0.014 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;No rows affected (0.13 seconds)&lt;BR /&gt;Error: Error while compiling statement: FAILED: SemanticException [Error 10027]: Invalid path (state=42000,code=10027)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;0: jdbc:hive2://machine1.testride.com:2181,machine2.t&amp;gt; use jayesh;import table test1 from '/warehouse/tablespace/managed/hive/demo.db/test1';&lt;BR /&gt;INFO : Compiling command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e): use jayesh&lt;BR /&gt;INFO : Semantic Analysis Completed (retrial = false)&lt;BR /&gt;INFO : Created Hive schema: Schema(fieldSchemas:null, properties:null)&lt;BR /&gt;INFO : Completed compiling command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e); Time taken: 0.006 seconds&lt;BR /&gt;INFO : Executing command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e): use jayesh&lt;BR /&gt;INFO : Starting task [Stage-0:DDL] in serial mode&lt;BR /&gt;INFO : Completed executing command(queryId=hive_20240502173047_d1f036dc-8722-4fc2-be00-1bafd032971e); Time taken: 0.006 seconds&lt;BR /&gt;INFO : OK&lt;BR /&gt;No rows affected (0.027 seconds)&lt;BR /&gt;Error: Error while compiling statement: FAILED: SemanticException [Error 10027]: Invalid path (state=42000,code=10027)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you please help me here to understand what's the issue and how can i resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 12:03:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-Able-to-run-import-command-it-fails-with-invalid-path/m-p/387499#M246334</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2024-05-02T12:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Not Able to run import command. it fails with invalid path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-Able-to-run-import-command-it-fails-with-invalid-path/m-p/387614#M246353</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107114"&gt;@jayes&lt;/a&gt;&amp;nbsp; Instead of copying the data using hdfs copy command, could you try EXPORT TABLE?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;EXPORT TABLE test1 to '&lt;SPAN&gt;/jay123/restore_jobid123243/jayesh/'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then run your IMPORT command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;use jayesh; import table test1 from '/jay123/restore_jobid123243/jayesh/'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Import table command requires metadata along with table data which gets dumped only when you use EXPORT command.&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2024 20:09:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-Able-to-run-import-command-it-fails-with-invalid-path/m-p/387614#M246353</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2024-05-05T20:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Not Able to run import command. it fails with invalid path</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Not-Able-to-run-import-command-it-fails-with-invalid-path/m-p/387661#M246377</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for the help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 10:03:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Not-Able-to-run-import-command-it-fails-with-invalid-path/m-p/387661#M246377</guid>
      <dc:creator>jayes</dc:creator>
      <dc:date>2024-05-07T10:03:18Z</dc:date>
    </item>
  </channel>
</rss>

