summaryrefslogtreecommitdiffstats
path: root/pnda-ztt-app/src/universal
diff options
context:
space:
mode:
Diffstat (limited to 'pnda-ztt-app/src/universal')
-rw-r--r--pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/.gitignore1
-rw-r--r--pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/application.properties8
-rw-r--r--pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/log4j.properties13
-rw-r--r--pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/opentsdb.json8
-rw-r--r--pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/properties.json10
5 files changed, 40 insertions, 0 deletions
diff --git a/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/.gitignore b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/.gitignore
new file mode 100644
index 0000000..d392f0e
--- /dev/null
+++ b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/.gitignore
@@ -0,0 +1 @@
+*.jar
diff --git a/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/application.properties b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/application.properties
new file mode 100644
index 0000000..8c1b965
--- /dev/null
+++ b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/application.properties
@@ -0,0 +1,8 @@
+kafka.brokers=${environment_kafka_brokers}
+kafka.zookeeper=${environment_kafka_zookeeper}
+app.checkpoint_path=${component_checkpoint_path}
+app.job_name=${component_job_name}
+app.processing_parallelism=${component_processing_parallelism}
+app.batch_size_seconds=${component_batch_size_seconds}
+kafka.consume_from_beginning=${component_consume_from_beginning}
+opentsdb.ip=${environment_opentsdb} \ No newline at end of file
diff --git a/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/log4j.properties b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/log4j.properties
new file mode 100644
index 0000000..6a3cab1
--- /dev/null
+++ b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/log4j.properties
@@ -0,0 +1,13 @@
+log4j.rootLogger=ERROR,rolling
+log4j.logger.com.cisco.pnda=${component.log_level},rolling
+log4j.additivity.com.cisco.pnda=false
+log4j.logger.com.cisco.ztt=DEBUG,rolling
+log4j.additivity.com.cisco.ztt=false
+
+log4j.appender.rolling=org.apache.log4j.RollingFileAppender
+log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
+log4j.appender.rolling.layout.conversionPattern=[%d] %p %m (%c)%n
+log4j.appender.rolling.maxFileSize=50MB
+log4j.appender.rolling.maxBackupIndex=1
+log4j.appender.rolling.file=${spark.yarn.app.container.log.dir}/spark.log
+log4j.appender.rolling.encoding=UTF-8
diff --git a/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/opentsdb.json b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/opentsdb.json
new file mode 100644
index 0000000..1029987
--- /dev/null
+++ b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/opentsdb.json
@@ -0,0 +1,8 @@
+[
+ {
+ "name": "nic.receivedTotalPacketsDelta"
+ },
+ {
+ "name": "cpu.percentUsage"
+ }
+] \ No newline at end of file
diff --git a/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/properties.json b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/properties.json
new file mode 100644
index 0000000..2f8ab6a
--- /dev/null
+++ b/pnda-ztt-app/src/universal/sparkStreaming/PndaZTTApp/properties.json
@@ -0,0 +1,10 @@
+{
+ "main_jar": "PndaZTTApp.jar",
+ "main_class": "com.cisco.ztt.App",
+ "log_level": "INFO",
+ "batch_size_seconds" : "2",
+ "processing_parallelism" : "1",
+ "checkpoint_path": "",
+ "input_topic": "ves.avro",
+ "consume_from_beginning": "false"
+}