Support Questions
Find answers, ask questions, and share your expertise

Binary Compatibility

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/




/usr/lib/hive/bin/hive: line 72: [: /usr/lib/hive/lib/hive-exec- binary operator expected
/usr/lib/hive/bin/hive: line 77: [: /usr/lib/hive/lib/hive-builtins- binary operator expected
/usr/lib/hive/bin/hive: line 82: [: /usr/lib/hive/lib/hive-metastore- binary operator expected
/usr/lib/hive/bin/hive: line 88: [: /usr/lib/hive/lib/hive-cli- binary operator expected
/usr/lib/hive/bin/ext/util/ line 21: [: /usr/lib/hive/lib/hive-cli- 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(
at org.apache.hadoop.util.RunJar.main(



below is my hive-site.xml:






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





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










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.