How To Test:
git clone https://github.com/paypal/NNAnalytics.git
- (Optional) Run
./gradlew -PmainClass=org.apache.hadoop.hdfs.server.namenode.analytics.TestNNAWithStreamEngine execute
. This will run thepublic static void main
method inorg.apache.hadoop.hdfs.server.namenode.analytics.TestNNAWithStreamEngine.java
undersrc/test/java
. Use CTRL+C to stop the demo. - (Optional) Run
./gradlew -PmainClass=org.apache.hadoop.hdfs.server.namenode.analytics.TestWithMiniClusterWithStreamEngine execute
. This will run thepublic static void main
method inorg.apache.hadoop.hdfs.server.namenode.analytics.TestWithMiniClusterWithStreamEngine.java
undersrc/test/java
. Use CTRL+C to stop the demo. - A local instance of NNA should start and be accessible at http://localhost:4567. Use a browser, preferably Chrome or Firefox, to view.
** The difference between Optional (1) and (2) is that (1) will launch a static instance of NNA with an unchanging files and directories where as (2) will mimic a production cluster on your local machine and update NNA as it runs.