Commit caff3c20 by Venkatesh Seetharam

ATLAS-13 Add project website. Contributed by Venkatesh Seetharam

parent d55f4b0f
...@@ -44,16 +44,20 @@ Once the build successfully completes, artifacts can be packaged for deployment. ...@@ -44,16 +44,20 @@ Once the build successfully completes, artifacts can be packaged for deployment.
* mvn clean assembly:assembly -DskipTests -DskipITs * mvn clean assembly:assembly -DskipTests -DskipITs
Tar can be found in {project dir}/target/apache-atlas-${project.version}-bin.tar.gz Tar can be found in atlas/target/apache-atlas-${project.version}-bin.tar.gz
Tar is structured as follows Tar is structured as follows
|- bin |- bin
|- atlas-start.sh |- atlas_start.py
|- atlas-stop.sh |- atlas_stop.py
|- atlas_config.py
|- quick_start.py
|- cputil.py
|- conf |- conf
|- application.properties |- application.properties
|- graph.properties |- client.properties
|- atlas-env.sh
|- log4j.xml |- log4j.xml
|- docs |- docs
|- server |- server
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
<skipTests>true</skipTests> <skipTests>true</skipTests>
</properties> </properties>
<!--
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
...@@ -62,4 +63,93 @@ ...@@ -62,4 +63,93 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
-->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-module-twiki</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>site</goal>
</goals>
<phase>prepare-package</phase>
</execution>
</executions>
<configuration>
<!--<outputDirectory>../../site</outputDirectory>-->
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.3</version>
<reportSets>
<reportSet>
<reports>
<report>index</report>
<report>project-team</report>
<report>mailing-list</report>
<report>issue-tracking</report>
<report>license</report>
<report>scm</report>
</reports>
</reportSet>
</reportSets>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jxr-plugin</artifactId>
<version>2.1</version>
<configuration>
<aggregate>true</aggregate>
</configuration>
</plugin>
</reportPlugins>
</configuration>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<webResources>
<resource>
<directory>src/site/resources</directory>
<targetPath>pages</targetPath>
</resource>
<resource>
<directory>target/site</directory>
<targetPath>pages</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
-->
</plugins>
</build>
</project> </project>
...@@ -29,14 +29,24 @@ ...@@ -29,14 +29,24 @@
<custom> <custom>
<fluidoSkin> <fluidoSkin>
<project>Apache Metadata and Governance</project> <project>Apache Atlas</project>
<topBarEnabled>true</topBarEnabled>
<topBarContainerStyle>width: 68%;</topBarContainerStyle>
<sideBarEnabled>false</sideBarEnabled> <sideBarEnabled>false</sideBarEnabled>
<leftColumnClass>span2</leftColumnClass>
<bodyColumnClass>span10</bodyColumnClass>
<googleSearch>
<sitesearch>http://atlas.incubator.apache.org</sitesearch>
</googleSearch>
<facebookLike/>
<googlePlusOne/>
</fluidoSkin> </fluidoSkin>
</custom> </custom>
<bannerLeft> <bannerLeft>
<name>DGC - Metadata</name> <name>Apache Atlas</name>
<src>./images/metadata-logo.png</src> <src>./images/atlas-logo.png</src>
<href>http://atlas.incubator.apache.org</href>
<width>200px</width> <width>200px</width>
<height>45px</height> <height>45px</height>
</bannerLeft> </bannerLeft>
...@@ -57,14 +67,63 @@ ...@@ -57,14 +67,63 @@
</script> </script>
</head> </head>
<breadcrumbs position="left"> <breadcrumbs>
<item name="MetadataGovernance" title="Apache Metadata and Governance" href="index.html"/> <item name="Apache" href="http://www.apache.org"/>
<item name="Atlas" title="Apache Atlas" href="index.html"/>
</breadcrumbs> </breadcrumbs>
<menu name="Atlas">
<item name="About" href="index.html"/>
<item name="Wiki" href="https://cwiki.apache.org/confluence/display/ATLAS"/>
<item name="News" href="https://cwiki.apache.org/confluence/display/ATLAS"/>
<item name="Git" href="https://git-wip-us.apache.org/repos/asf/incubator-atlas.git" />
<item name="Svn" href="https://svn.apache.org/repos/asf/incubator/atlas" />
<item name="Jira" href="https://issues.apache.org/jira/browse/ATLAS" />
<item name="Powered by" href="https://cwiki.apache.org/confluence/display/ATLAS/PoweredBy" />
<item name="Blog" href="http://blogs.apache.org/atlas/" />
</menu>
<menu name="Project Information">
<item name="Summary" href="project-info.html" />
<item name="Mailing Lists" href="mail-lists.html" />
<item name="IRC" href="http://webchat.freenode.net?channels=apacheatlas&amp;uio=d4" />
<item name="Team" href="team-list.html" />
<item name="Issue Tracking" href="issue-tracking.html" />
<item name="Source Repository" href="source-repository.html" />
<item name="License" href="license.html" />
</menu>
<menu name="Releases">
<item name="Coming soon" href="https://cwiki.apache.org/confluence/display/ATLAS"/>
</menu>
<menu name="Documentation">
<!-- current points to latest release -->
<item name="current" href="index.html"/>
</menu>
<menu name="Resources">
<item name="Overview" href="index.html"/>
<item name="Getting Started" href="./QuickStart.html"/>
<item name="Architecture" href="./Architecture.html"/>
<item name="Installation" href="./InstallationSteps.html"/>
<item name="Type System" href="./TypeSystem.html"/>
<item name="Configuration" href="./Configuration.html"/>
<item name="Security" href="./Security.html"/>
<item name="Rest API" href="./api/rest.html"/>
</menu>
<menu name="ASF">
<item name="How Apache Works" href="http://www.apache.org/foundation/how-it-works.html"/>
<item name="Foundation" href="http://www.apache.org/foundation/"/>
<item name="Sponsoring Apache" href="http://www.apache.org/foundation/sponsorship.html"/>
<item name="Thanks" href="http://www.apache.org/foundation/thanks.html"/>
</menu>
<footer> <footer>
© 2011-2012 The Apache Software Foundation. Apache Metadata and Governance, Apache, © 2011-2012 The Apache Software Foundation. Apache Atlas, Atlas, Apache,
the Apache feather logo, and the Apache Metadata and Governance project logo are the Apache feather logo, and the Apache Metadata and Governance project logo are
trademarks of The Apache Software Foundation. trademarks of The Apache Software Foundation.
</footer> </footer>
</body> </body>
</project> </project>
\ No newline at end of file
---++ Building & Installing Apache Atlas
---+++ Building Atlas
<verbatim>
git clone https://git-wip-us.apache.org/repos/asf/incubator-atlas.git atlas
cd atlas
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m" && mvn clean install
</verbatim>
Once the build successfully completes, artifacts can be packaged for deployment.
<verbatim>
mvn clean assembly:assembly -DskipTests
</verbatim>
Tar can be found in atlas/target/apache-atlas-${project.version}-bin.tar.gz
Tar is structured as follows
<verbatim>
|- bin
|- atlas_start.py
|- atlas_stop.py
|- atlas_config.py
|- quick_start.py
|- cputil.py
|- conf
|- application.properties
|- client.properties
|- atlas-env.sh
|- log4j.xml
|- docs
|- server
|- webapp
|- atlas.war
|- README
|- NOTICE.txt
|- LICENSE.txt
|- DISCLAIMER.txt
|- CHANGES.txt
</verbatim>
---+++ Installing & Running Atlas
*Installing Atlas*
<verbatim>
tar -xzvf apache-atlas-${project.version}-bin.tar.gz
* cd atlas-${project.version}
</verbatim>
*Configuring Atlas*
By default config directory used by Atlas is {package dir}/conf. To override this set environment
variable METADATA_CONF to the path of the conf dir.
atlas-env.sh has been added to the Atlas conf. This file can be used to set various environment
variables that you need for you services. In addition you can set any other environment
variables you might need. This file will be sourced by atlas scripts before any commands are
executed. The following environment variables are available to set.
<verbatim>
# The java implementation to use. If JAVA_HOME is not found we expect java and jar to be in path
#export JAVA_HOME=
# any additional java opts you want to set. This will apply to both client and server operations
#export METADATA_OPTS=
# any additional java opts that you want to set for client only
#export METADATA_CLIENT_OPTS=
# java heap size we want to set for the client. Default is 1024MB
#export METADATA_CLIENT_HEAP=
# any additional opts you want to set for atlas service.
#export METADATA_SERVER_OPTS=
# java heap size we want to set for the atlas server. Default is 1024MB
#export METADATA_SERVER_HEAP=
# What is is considered as atlas home dir. Default is the base locaion of the installed software
#export METADATA_HOME_DIR=
# Where log files are stored. Defatult is logs directory under the base install location
#export METADATA_LOG_DIR=
# Where pid files are stored. Defatult is logs directory under the base install location
#export METADATA_PID_DIR=
# where the atlas titan db data is stored. Defatult is logs/data directory under the base install location
#export METADATA_DATA_DIR=
# Where do you want to expand the war file. By Default it is in /server/webapp dir under the base install dir.
#export METADATA_EXPANDED_WEBAPP_DIR=
</verbatim>
*NOTE for Mac OS users*
<verbatim>
If you are using a Mac OS, you will need to configure the METADATA_SERVER_OPTS (explained above).
In {package dir}/conf/atlas-env.sh uncomment the following line
#export METADATA_SERVER_OPTS=
and change it to look as below
export METADATA_SERVER_OPTS="-Djava.awt.headless=true -Djava.security.krb5.realm= -Djava.security.krb5.kdc="
</verbatim>
*Starting Atlas Server*
<verbatim>
bin/atlas_start.py [-port <port>]
</verbatim>
By default,
* To change the port, use -port option.
* atlas server starts with conf from {package dir}/conf. To override this (to use the same conf
with multiple atlas upgrades), set environment variable METADATA_CONF to the path of conf dir
*Using Atlas*
<verbatim>
* Verify if the server is up and running
curl -v http://localhost:21000/api/atlas/admin/version
{"Version":"v0.1"}
* List the types in the repository
curl -v http://localhost:21000/api/atlas/types
{"list":["biginteger","short","byte","int","string","bigdecimal","boolean","date","double","long","float"],"requestId":"902580786@qtp-1479771328-0"}
* List the instances for a given type
curl -v http://localhost:21000/api/atlas/entities?type=hive_table
{"requestId":"788558007@qtp-44808654-5","list":["cb9b5513-c672-42cb-8477-b8f3e537a162","ec985719-a794-4c98-b98f-0509bd23aac0","48998f81-f1d3-45a2-989a-223af5c1ed6e","a54b386e-c759-4651-8779-a099294244c4"]}
curl -v http://localhost:21000/api/atlas/entities/list/hive_db
* Search for entities (instances) in the repository
curl -v http://localhost:21000/api/atlas/discovery/search/dsl?query="from hive_table"
</verbatim>
*Dashboard*
Once atlas is started, you can view the status of atlas entities using the Web-based
dashboard. \You can open your browser at the corresponding port to use the web UI.
*Stopping Atlas Server*
<verbatim>
bin/atlas_stop.py
</verbatim>
...@@ -13,6 +13,7 @@ ATLAS-10 Update trunk version to 0.6-incubating-SNAPSHOT (shwethags) ...@@ -13,6 +13,7 @@ ATLAS-10 Update trunk version to 0.6-incubating-SNAPSHOT (shwethags)
ALL CHANGES: ALL CHANGES:
ATLAS-13 Add project website (Venkatesh Seetharam)
ATLAS-12 Update the copyright in Notice and License files (Venkatesh Seetharam) ATLAS-12 Update the copyright in Notice and License files (Venkatesh Seetharam)
ATLAS-9 Create branch-0.5 and update version to 0.5-incubating (shwethags) ATLAS-9 Create branch-0.5 and update version to 0.5-incubating (shwethags)
ATLAS-14 Change the github repo url in installation steps to point to Apache repo (ajayyadava via shwethags) ATLAS-14 Change the github repo url in installation steps to point to Apache repo (ajayyadava via shwethags)
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
# java heap size we want to set for the client. Default is 1024MB # java heap size we want to set for the client. Default is 1024MB
#export METADATA_CLIENT_HEAP= #export METADATA_CLIENT_HEAP=
# any additional opts you want to set for falcon service. # any additional opts you want to set for atlas service.
#export METADATA_SERVER_OPTS= #export METADATA_SERVER_OPTS=
# java heap size we want to set for the falcon server. Default is 1024MB # java heap size we want to set for the atlas server. Default is 1024MB
#export METADATA_SERVER_HEAP= #export METADATA_SERVER_HEAP=
# What is is considered as falcon home dir. Default is the base locaion of the installed software # What is is considered as atlas home dir. Default is the base locaion of the installed software
#export METADATA_HOME_DIR= #export METADATA_HOME_DIR=
# Where log files are stored. Defatult is logs directory under the base install location # Where log files are stored. Defatult is logs directory under the base install location
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
# Where pid files are stored. Defatult is logs directory under the base install location # Where pid files are stored. Defatult is logs directory under the base install location
#export METADATA_PID_DIR= #export METADATA_PID_DIR=
# where the falcon active mq data is stored. Defatult is logs/data directory under the base install location # where the atlas titan db data is stored. Defatult is logs/data directory under the base install location
#export METADATA_DATA_DIR= #export METADATA_DATA_DIR=
# Where do you want to expand the war file. By Default it is in /server/webapp dir under the base install dir. # Where do you want to expand the war file. By Default it is in /server/webapp dir under the base install dir.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment