[
https://issues.apache.org/jira/browse/HCATALOG-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482020#comment-13482020
]
Viraj Bhat commented on HCATALOG-536:
-------------------------------------
Hi Olga,
What I meant was the client side trace. There is no server trace. The issue
resolves when the mount table is updated on the HCatServer core-site.xml. The
previous error resulted because the Hive/HCat client, core-site.xml was only
updated with the mount table.
Viraj
> HCat CREATE TABLE LOCATION using viewfs:/// command fails
> ---------------------------------------------------------
>
> Key: HCATALOG-536
> URL: https://issues.apache.org/jira/browse/HCATALOG-536
> Project: HCatalog
> Issue Type: Bug
> Components: metastore
> Affects Versions: 0.4
> Reporter: Viraj Bhat
>
> A query in HCat/Hive command line fails:
> {code}
> CREATE TABLE tmp_hcat_federated_numbers_part (
> id int,
> intnum int,
> floatnum float
> )
> partitioned by (
> part1 string,
> part2 string
> )
> stored as rcfile
> location 'viewfs:///out1/tmp_hcat_federated_numbers_part';
> {code}
> Resulted in the following error on the Metastore server.
> {quote}
> FAILED: Error in metadata: MetaException(message:Got exception:
> java.io.IOException viewfs://default/)
> org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got
> exception: java.io.IOException viewfs://default/)
> at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:544)
> at
> org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3313)
> at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:242)
> at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:134)
> at
> org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
> at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1330)
> at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1122)
> at org.apache.hadoop.hive.ql.Driver.run(Driver.java:955)
> at
> org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:258)
> at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:215)
> at
> org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:406)
> at
> org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:341)
> at
> org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:439)
> at
> org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:449)
> at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:647)
> at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:557)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:208)
> Caused by: MetaException(message:Got exception: java.io.IOException
> viewfs://default/)
> at
> org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$create_table_result.read(ThriftHiveMetastore.java:16424)
> at
> org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
> at
> org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.recv_create_table(ThriftHiveMetastore.java:677)
> at
> org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore$Client.create_table(ThriftHiveMetastore.java:664)
> at
> org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable(HiveMetaStoreClient.java:402)
> at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:538)
> ... 20 more
> {quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira