Griffin Measure Demo Docker

We've prepared a docker for griffin measure demo.

Preparation

  1. Install docker.
  2. Download docker image. In this image, the environment for measure module has been prepared, including: hadoop, hive, spark, mysql.
docker pull bhlx3lyx7/griffin_measure_demo:0.0.1
  1. Run docker image.
docker run -it -h griffin --name griffin_measure_demo -m 8G --memory-swap -1 \
-p 42122:2122 -p 47077:7077 -p 46066:6066 -p 48088:8088 -p 48040:8040 \
-p 43306:3306 -p 49000:9000 -p 48042:8042 -p 48080:8080 -p 47017:27017 \
-p 49083:9083 -p 48998:8998 -p 49200:9200 bhlx3lyx7/griffin_measure_demo:0.0.1
  1. In this docker container, run the prepared demo.
  • accuracy demo: This demo is batch accuracy, source data is Hive table “demo_src”, target data is Hive table “demo_tgt”, metrics will be persisted in hdfs:///griffin/persist/accu after calculation.
    • switch into job/accu.
      	cd job/accu
      
    • run the prepared script.
      	./bgwork.sh
      
    • check job log.
      	tail -f accu.log
      
  • profiling demo: This demo is batch profiling, source data is Hive table “demo_src”, metrics will be persisted in hdfs:///griffin/persist/prof after calculation.
    • switch into job/prof.
      	cd job/prof
      
    • run the prepared script.
      	./bgwork.sh
      
    • check job log.
      	tail -f prof.log
      
  1. You can modify the job configuration file config.json of the above demos, or create your own data sources, to get more metrics of data.