This article assumes that, you have a HDP-2.5 cluster with Atlas & Hive enabled. Also make sure that atlas is up and running on that cluster. Please refer to this documentation link for deploying cluster with Atlas enabled.
Atlas provides a script/tool to import metadata from hive for all hive entities like tables, database, views, columns etc... This tool/script requires hadoop and hive classpath jars, to make them available to the script
Make sure that the environment variable HADOOP_CLASSPATH is set OR HADOOP_HOME to point to root directory of your Hadoop installation.
set HIVE_HOME env variable to the root of Hive installation.
Set env variable HIVE_CONF_DIR to Hive configuration directory.
Copy <atlas-conf>/atlas-application.properties to the hive conf directory
Once the above steps are successfully completed, now we are ready to run the script.
Usage: <atlas package>/hook-bin/import-hive.sh
When you run the above command, you should see the below messages over console.