Support Questions

Find answers, ask questions, and share your expertise

Unable to import hive with atlas

avatar
Contributor

Im installing atlas and trying to import hive. But import-hive.sh is failing with below exception. Not sure which path the script is refering for the configuration file. I have copied application.properties to all locations possible.

2017-05-05 13:06:07,154 INFO - [main:] ~ Looking for atlas-application.properties in classpath (ApplicationProperties:73) 2017-05-05 13:06:07,157 INFO - [main:] ~ Looking for /atlas-application.properties in classpath (ApplicationProperties:78) 2017-05-05 13:06:07,157 INFO - [main:] ~ Loading atlas-application.properties from null (ApplicationProperties:86) Exception in thread "main" org.apache.atlas.AtlasException: Failed to load application properties at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:92) at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:59) at org.apache.atlas.hive.bridge.HiveMetaStoreBridge.main(HiveMetaStoreBridge.java:636) 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:42) at org.apache.atlas.ApplicationProperties.get(ApplicationProperties.java:88) ... 2 more Failed to import Hive Data Model!!!

1 ACCEPTED SOLUTION

avatar

THis has been resolved by changing the apllication.properties to atlas-application.properties.

View solution in original post

5 REPLIES 5

avatar
Contributor

THis has been resolved by changing the apllication.properties to atlas-application.properties.

avatar
Contributor

But unable to finish import with below error.

2017-05-05 15:04:34,016 INFO - [main:] ~ Client has only one service URL, will use that for all actions: http://host1.hdp.com:21000 (AtlasClient:265) 2017-05-05 15:04:35,219 WARN - [main:] ~ Unable to load native-hadoop library for your platform... using builtin-java classes where applicable (NativeCodeLoader:62) 2017-05-05 15:04:36,205 DEBUG - [main:] ~ Using resource http://host1.hdp.com:21000/api/atlas/types/hdfs_path for 0 times (AtlasClient:784) 2017-05-05 15:04:36,233 DEBUG - [main:] ~ API http://host1.hdp.com:21000/api/atlas/types/hdfs_path returned status 200 (AtlasClient:1191) Exception in thread "main" org.json4s.package$MappingException: No usable value for classTypes No usable value for typeDescription Did not find value which can be converted into java.lang.String at org.json4s.reflect.package$.fail(package.scala:96) at org.json4s.Extraction$ClassInstanceBuilder.org$json4s$Extraction$ClassInstanceBuilder$$buildCtorArg(Extraction.scala:462) at org.json4s.Extraction$ClassInstanceBuilder$$anonfun$14.apply(Extraction.scala:482)

avatar
Expert Contributor

The latest error that you posted usually means that the data is not being sent correctly to atlas server. Hence when trying to serve the request, atlas fails to process the call. Can you share the application logs from atlas ?

avatar

THis has been resolved by changing the apllication.properties to atlas-application.properties.

avatar
Rising Star

Please note 'apllication.properties' file is present in '/etc/atlas/conf/' folder so you need to rename it to 'atlas-application.properties' with permissions of 744, owner as atlas and group as hadoop.