How To Test:

  1. git clone https://github.com/paypal/NNAnalytics.git
  2. (Optional) Run ./gradlew -PmainClass=org.apache.hadoop.hdfs.server.namenode.analytics.TestNNAWithStreamEngine execute. This will run the public static void main method in org.apache.hadoop.hdfs.server.namenode.analytics.TestNNAWithStreamEngine.java under src/test/java. Use CTRL+C to stop the demo.
  3. (Optional) Run ./gradlew -PmainClass=org.apache.hadoop.hdfs.server.namenode.analytics.TestWithMiniClusterWithStreamEngine execute. This will run the public static void main method in org.apache.hadoop.hdfs.server.namenode.analytics.TestWithMiniClusterWithStreamEngine.java under src/test/java. Use CTRL+C to stop the demo.
  4. 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.