Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
#spring boot app
org.apache.griffin.core.GriffinWebApplication

 

ui : front end 

configure to reflect your dev env in several files

update service/src/main/resources/application.properties

...

update measure/src/main/resources/env.json to reflect with your elastic search instance.

Code Block
languagejs

{

  "spark": {

    "log.level": "INFO",

    "checkpoint.dir": "hdfs:///griffin/batch/cp",

    "config": {}

  },




  "persist": [

    {

      "type": "hdfs",

      "config": {

        "path": "hdfs:///griffin/streaming/persist",

        "max.persist.lines": 10000,

        "max.lines.per.file": 10000

      }

    },

    {

      "type": "http",

      "config": {

        "method": "post",

        "api": "http://HOSTNAME:9200/griffin/accuracy"

      }

    }

  ],




  "cleaner": {




  }

}




and copy env.json to griffin work directory in hdfs.

update service/src/main/resources/sparkJob.properties file

Code Block
languagetext
sparkJob.file = hdfs://<griffin measure path>/griffin-measure.jar
sparkJob.args_1 = hdfs://<griffin work directory>/env.json
sparkJob.jars_1 = hdfs://<pathTo>/datanucleus-api-jdo-3.2.6.jar
sparkJob.jars_2 = hdfs://<pathTo>/datanucleus-core-3.2.10.jar
sparkJob.jars_3 = hdfs://<pathTo>/datanucleus-rdbms-3.2.9.jar
sparkJob.uri = http://<your IP>:8998/batches

 

update ui/js/services/service.js

...