今天使用hive時發現用select * 查詢單表,查詢正常。
使用select 字段名 ,select count(*) ,及關聯表查詢時發生如下異常錯誤:
Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: file:///service/cdh/hive/lib/zookeeper-3.4.5-cdh4.5.0.jar
查了很久才發現原來是hive-site.xml對應的
<property>
<name>hive.aux.jars.path</name>
<value>file:///usr/hive/lib/hive-hbase-handler-0.13.0-SNAPSHOT.jar,file:///usr/hive/lib/protobuf-java-2.5.0.jar,file:///usr/hive/lib/hbase-client-0.96.0-hadoop2.jar,file:///usr/hive/lib/hbase-common-0.96.0-hadoop2.jar,file:///usr/hive/lib/zookeeper-3.4.5.jar,file:///usr/hive/lib/guava-11.0.2.jar</value>
</property>
此項配置value值絕對不能有換行,或者空格等符號。
否則提交mapreduce時就會報錯。