Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

java.lang.IllegalArgumentException: Wrong FS:

Highlighted

java.lang.IllegalArgumentException: Wrong FS:

Explorer

Hi there:

 

I have a CDH 5.7.1 HA cluster.

 

The core-site.xml content has:

  <property>

    <name>fs.defaultFS</name>

    <value>hdfs://nameservice1</value>

  </property>

 

FOLLOWING HIVE SELECT FAILS:

 

hive> select * from customer_region;

FAILED: SemanticException Unable to determine if hdfs://ip-10-0-0-243.ec2.internal:8020/user/hive/warehouse/customer_region is encrypted: java.lang.IllegalArgumentException: Wrong FS: hdfs://ip-10-0-0-243.ec2.internal:8020/user/hive/warehouse/customer_region, expected: hdfs://nameservice1

 

 

FOLLOWING IS USING BEELINE AND HIVE SELECT FAILS, SAME LIKE ABOVE HIVE SELECT:

 

[root@ip-10-0-0-37 conf]# beeline -u 'jdbc:hive2://10.0.0.243:10000/default;'

2016-09-29 03:33:32,991 WARN  [main] mapreduce.TableMapReduceUtil: The hbase-prefix-tree module jar containing PrefixTreeCodec is not present.  Continuing without it.

scan complete in 3ms

Connecting to jdbc:hive2://10.0.0.243:10000/default;

Connected to: Apache Hive (version 1.1.0-cdh5.7.1)

Driver: Hive JDBC (version 1.1.0-cdh5.7.1)

Transaction isolation: TRANSACTION_REPEATABLE_READ

Beeline version 1.1.0-cdh5.7.1 by Apache Hive

0: jdbc:hive2://10.0.0.243:10000/default> show databases;

INFO  : Compiling command(queryId=hive_20160929033333_70cc0a98-12ce-4f64-8544-ac86243ca29c): show databases

INFO  : Semantic Analysis Completed

INFO  : Returning Hive schema: Schema(fieldSchemas:[FieldSchema(name:database_name, type:string, comment:from deserializer)], properties:null)

INFO  : Completed compiling command(queryId=hive_20160929033333_70cc0a98-12ce-4f64-8544-ac86243ca29c); Time taken: 0.525 seconds

INFO  : Executing command(queryId=hive_20160929033333_70cc0a98-12ce-4f64-8544-ac86243ca29c): show databases

INFO  : Starting task [Stage-0:DDL] in serial mode

INFO  : Completed executing command(queryId=hive_20160929033333_70cc0a98-12ce-4f64-8544-ac86243ca29c); Time taken: 0.041 seconds

INFO  : OK

+----------------+--+

| database_name  |

+----------------+--+

| default        |

+----------------+--+

1 row selected (1.886 seconds)

0: jdbc:hive2://10.0.0.243:10000/default> select * from  customer_region;

Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://ip-10-0-0-243.ec2.internal:8020/user/hive/warehouse/customer_region is encrypted: java.lang.IllegalArgumentException: Wrong FS: hdfs://ip-10-0-0-243.ec2.internal:8020/user/hive/warehouse/customer_region, expected: hdfs://nameservice1 (state=42000,code=40000)