Support Questions

Find answers, ask questions, and share your expertise

import-hive.sh script failing in atlas

Explorer

Using Hive configuration directory [/usr/hdp/2.6.2.0-205/hive2/conf] /usr/hdp/2.6.4.0-91/hadoop/conf:/usr/hdp/2.6.4.0-91/hadoop/lib/*:/usr/hdp/2.6.4.0-91/hadoop/.//*:/usr/hdp/2.6.4.0-91/hadoop-hdfs/./:/usr/hdp/2.6.4.0-91/hadoop-hdfs/lib/*:/usr/hdp/2.6.4.0-91/hadoop-hdfs/.//*:/usr/hdp/2.6.4.0-91/hadoop-yarn/lib/*:/usr/hdp/2.6.4.0-91/hadoop-yarn/.//*:/usr/hdp/2.6.4.0-91/hadoop-mapreduce/lib/*:/usr/hdp/2.6.4.0-91/hadoop-mapreduce/.//*:/usr/hdp/2.6.4.0-91/tez/*:/usr/hdp/2.6.4.0-91/tez/lib/*:/usr/hdp/2.6.4.0-91/tez/conf Log file for import is /usr/hdp/current/atlas-server/logs/import-hive.log SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/hdp/2.6.2.0-205/hive2/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/hdp/2.6.4.0-91/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory] 2018-11-01T14:42:55,450 INFO [main] org.apache.atlas.ApplicationProperties - Looking for atlas-application.properties in classpath 2018-11-01T14:42:55,452 INFO [main] org.apache.atlas.ApplicationProperties - Looking for /atlas-application.properties in classpath 2018-11-01T14:42:55,453 INFO [main] org.apache.atlas.ApplicationProperties - Loading atlas-application.properties from null Exception in thread "main" org.apache.atlas.hook.AtlasHookException: HiveMetaStoreBridge.main() failed. at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:650) Caused by: org.apache.atlas.AtlasException: Failed to load application properties at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:97) at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:64) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:622) Caused by: org.apache.commons.configuration.ConfigurationException: Cannot locate configuration source null at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:217) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197) at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:181) at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:269) at org.apache.atlas.ApplicationProperties.<init>(ApplicationProperties.java:47) at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:93) ... 2 more Failed to import Hive Data Model!!!

2 REPLIES 2

@ASIF Khan

Do you have atlas metadata client installed on same machine as Atlas server? Also is this kerberised cluster?

Are you able to run import-hive.sh successfully?