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.

Binary Compatibility

Highlighted

Binary Compatibility

Can any on ehelp me on the below error:

 

When i start the hive am getting the below error:

 

cd /usr/lib/hive/bin/

 

 hive

 

/usr/lib/hive/bin/hive: line 72: [: /usr/lib/hive/lib/hive-exec-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/hive: line 77: [: /usr/lib/hive/lib/hive-builtins-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/hive: line 82: [: /usr/lib/hive/lib/hive-metastore-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/hive: line 88: [: /usr/lib/hive/lib/hive-cli-0.10.0.21.jar: binary operator expected
/usr/lib/hive/bin/ext/util/execHiveCmd.sh: line 21: [: /usr/lib/hive/lib/hive-cli-0.10.0.21.jar: binary operator expected
Exception in thread "main" java.lang.ClassNotFoundException: /usr/lib/hive/lib/hive-cli-0/9/0/jar
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.hadoop.util.RunJar.main(RunJar.java:149)

 

 

below is my hive-site.xml:

 

<configuration>

  <property>

    <name>javax.jdo.option.ConnectionURL</name>

    <value>jdbc:derby://localhost:1527/myderby1;create=true</value>

    <description>JDBC connect string for a JDBC metastore</description>

  </property>

  <property>

    <name>javax.jdo.option.ConnectionDriverName</name>

    <value>org.apache.derby.jdbc.ClientDriver</value>

    <description>Driver class name for a JDBC metastore</description>

  </property>

</configuration>

 

 

 

 

-Regards

Narayan

1 REPLY 1

Re: Binary Compatibility

Expert Contributor

you can see:

 

Exception in thread "main" java.lang.ClassNotFoundException: /usr/lib/hive/lib/hive-cli-0/9/0/jar

 

 

it seems some jar package can't be found.   if you have installed hive by CM, you can delete this service, then add again.

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here