JDBC 연결 Hive(Maven 구성 및 로컬 jar 구성 포함)

1661 단어

서버hive와hadoop 버전 보기


hadoop 버전과hive 명령을 사용하여hadoop 버전을 볼 수 있습니다
[guser@hadoop-hive01 hadoop]$ hadoop version
Hadoop 2.6.0-cdh5.9.0
Subversion http://github.com/cloudera/hadoop -r 1c8ae0d951319fea693402c9f82449447fd27b07
Compiled by jenkins on 2016-10-21T08:10Z
Compiled with protoc 2.5.0
From source with checksum 5448863f1e597b97d9464796b0a451
This command was run using /usr/lib/hadoop/hadoop-common-2.6.0-cdh5.9.0.jar
[guser@hadoop-hive01 hadoop]$ hive
2017-08-01 16:43:28,717 WARN  [main] mapreduce.TableMapReduceUtil: The hbase-prefix-tree module jar containing PrefixTreeCodec is not present.  Continuing without it.

Logging initialized using configuration in jar:file:/usr/lib/hive/lib/hive-exec-1.1.0-cdh5.9.0.jar!/hive-log4j.properties
WARNING: Hive CLI is deprecated and migration to Beeline is recommended.
hive> 

jar 의존 패키지


의존하는jar가방은 모두 다음과 같은 몇 개가 있습니다
$HADOOP_HOME/hadoop-common-${hadoop_version}.jar
$HIVE_HOME/lib/hive-exec-${hive_version}.jar 
$HIVE_HOME/lib/hive-jdbc-${hive_version}.jar 
$HIVE_HOME/lib/hive-metastore-${hive_version}.jar  
$HIVE_HOME/lib/hive-service-${hive_version}.jar   
$HIVE_HOME/lib/libfb303-0.9.3.jar  
$HIVE_HOME/lib/commons-logging-1.1.3.jar 
httpcore-4.2.5.jar
httpclient-4.2.5.jar
slf4j-api-1.6.1.jar

maven 설정

	
			org.apache.hadoop
			hadoop-common
			2.6.0
		

		
			org.apache.hive
			hive-jdbc
			1.1.0
		

좋은 웹페이지 즐겨찾기