메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


1. mysql을 설치/설정한다.(hive-site.xml)

 : hive.metastore.lcoal은 설정하지 않아도됨

 

-------------------------------------------------hive-site.xml의 일부--------------------------------------------------------

<property>
  <name>hive.metastore.uris</name>
  <value>thrift://192.168.8.5:9083</value>
  <description>Thrift uri for the remote metastore. Used by metastore client to connect to remote metastore.</description>
</property>
<property>
  <name>hive.metastore.local</name>
  <value>false</value>
</property>
<property>
  <name>javax.jdo.option.ConnectionURL</name>
  <value>jdbc:mysql://localhost:3306/metastore_db</value>
  <description>JDBC connect string for a JDBC metastore</description>
</property>
<property>
  <name>hive.metastore.warehouse.dir</name>
  <value>/user/hadoop/warehouse</value>
</property>
<property>
  <name>javax.jdo.option.ConnectionDriverName</name>
  <value>com.mysql.jdbc.Driver</value>
  <description>Driver class name for a JDBC metastore</description>
</property>
 
2. Hive metastore interface를 기동해준다.
bin/hive --service metastore &
 
3. 9083포트 확인
netstat -an | grep 9083
 
* hive metastore interface기동하지 않고 oozie에서 hive job을 돌리면...
아래와 같은 오류가 발생하며 job이 kill된다.

================================================================= >>> Invoking Hive command line now >>> Hadoop Job IDs executed by Hive: Intercepting System.exit(40000) <<< Invocation of Main class completed <<< Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [40000] Oozie Launcher failed, finishing Hadoop job gracefully Oozie Launcher ends -- End of task: attempt_201405271904_0020_m_000000_0 --




stderr logs

log4j:WARN No appenders could be found for logger (org.apache.hadoop.util.NativeCodeLoader). log4j:WARN Please initialize the log4j system properly. Logging initialized using configuration in jar:file:/tmp/mapr-hadoop/mapred/local/taskTracker/distcache/5455234734278781531_309545739_993904106/maprfs/mapr/my.cluster.com/lib/hive/hive-common-0.12-mapr-1401-140130.jar!/hive-log4j.properties FAILED: SemanticException Unable to fetch table ht_dm_101010 Log file: /tmp/mapr-hadoop/mapred/local/taskTracker/mapr/jobcache/job_201405271904_0020/attempt_201405271904_0020_m_000000_0/work/hive-oozie-job_201405271904_0020.log not present. Therefore no Hadoop jobids found Intercepting System.exit(40000) Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [40000] -- End of task: attempt_201405271904_0020_m_000000_0 --

번호 제목 날짜 조회 수
» hive job실행시 meta정보를 원격의 mysql에 저장하는 경우 설정방법 2014.05.28 1164
600 impala 설치/설정 2016.06.03 1161
599 Current heap configuration for MemStore and BlockCache exceeds the threshold required for successful cluster operation 2017.07.18 1151
598 DataNode를 기동할때 "Block pool ID needed, but service not yet registered with NN" 오류 발생에 따른 조치사항 2018.05.28 1147
597 "Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient resources"오류 발생시 조치사항 2016.05.25 1133
596 Building a Cluster docs 2014.04.22 1129
595 cloudera(python 2.7.5)에서 anaconda3로 설치한 외부 python(3.6.6)을 이용하여 pyspark를 사용하는 설정 2018.09.14 1126
594 Flume과 Kafka를 사용한 초당 100만개 로그 수집 테스트 file 2016.10.31 1126
593 hive에서 insert overwrite directory.. 로 하면 default column구분자는 'SOH'혹은 't'가 됨 2014.05.20 1124
592 unique한 값 생성 2014.04.25 1124
591 Impala의 Queries탭에서 여러조건으로 쿼리 찾기 2018.05.09 1114
590 [백업] 리눅스 시스템 백업하기 (Linux System Backup) - TAR 사용 시스템 전체 백업 2022.01.19 1111
589 dual table만들기 2014.05.16 1103
588 [Magento]php7에 Composer를 이용하여 Magento 2.1.3 설치 file 2017.01.30 1097
587 postgresql-9.4에서 FATAL: remaining connection slots are reserved for non-replication superuser connections가 나올때 조치 2018.08.16 1085
586 oozie 에서 sqoop action실행 에러 - 컬럼개수 차이 2014.07.17 1081
585 특정파일이 생성되어야 action이 실행되는 oozie job만들기(coordinator.xml) 2014.05.20 1080
584 mybatis와 spring을 org.apache.commons.dbcp2.BasicDataSource의 DataSource로 연동할때 DB설정(참고) 2016.10.31 1074
583 Using The ZooKeeper CLI에서 zkCli의 위치 2014.11.02 1057
582 hadoop 기반 문서 검색 2014.09.25 1049
위로