Let’s say we want to got working Apache Atlas instance with embedded Hbase & Solr on our machine. Notice, that you need to install JDK 8 before start.
Go to the Apache Atlas GitHub page, and download the zip file with the source code of the latest stable release from here: https://github.com/apache/atlas/releases
Important notice: DO NOT perform git clone from the master branch, as the development version is unstable and may contain a large number of bugs.
After downloading stable release, unpack it and do compile:
cd atlas-release-x.y.z-* export MAVEN_OPTS="-Xms2g -Xmx2g" mvn -T 4C clean -DskipTests package -Pdist,embedded-hbase-solr
cd distro/target tar -xzvf apache-atlas-x.y.z-server.tar.gz cd apache-atlas-x.y.z
Note, that there is no error in the
cd apache-atlas-x.y.z command. Now continue:
export MANAGE_LOCAL_HBASE=true export MANAGE_LOCAL_SOLR=true export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
/usr/lib/jvm/java-8-openjdk-amd64 path with your own.
It is important to run Apache Atlas from the
apache-atlas-x.y.z directory, without going to the bin folder or somewhere else:
chmod +x ./bin/atlas_start.py ./bin/atlas_start.py
It takes a lot of time Atlas to start completely, even if you see the message “Apache Atlas server started“. The main progress indicator is
application.log file, located under logs directory. If you see new INFO/WARN record appearing every second, everything is ok and Apache Atlas is in the progress of starting.
You can check Apache Atlas using this command:
curl -u admin:admin http://localhost:21000/api/atlas/admin/version
- If any errors occur when starting Apache Atlas, I strongly recommend restarting the entire operating system, otherwise a successful start may not be achieved.
- If you receive some errors like
ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase", "localhost:2181 failed for list of /hbase, code = CONNECTIONLOSS,
SessionExpiredException: KeeperErrorCode = Session expired for /config/topics,
Error 503 Service Unavailable,
FileNotFoundException ... atlas.war,
WstxParsingException: Illegal to have multiple roots,
Could not retrieve cluster id,
Cluster is not readyand etc, pay attention just for three things:
- First: which version of Apache Atlas you trying to install? It’s really stable, not SNAPSHOT?
- Second: do you remember, that you need restart entire OS after each unsuccessful Apache Atlas run?
- Third: which directory you using for Apache Atlas starting? It should be EQUAL this:
- If there is any error during the build process, for example
Maven could not find artifact,
Plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 or some of its dependencies could not be resolved,
Could not transfer artifactand etc, download this artifact manually using the command:
mvn dependency:get -Dartifact=groupId:artifactId:version
If you still have any questions, feel free to ask me in the comments under this article, or write me on email@example.com.
If I saved your day, you can support me :)