From c456b40125845384550323cf56e375ad6e0569ba Mon Sep 17 00:00:00 2001 From: Sonal Goyal Date: Mon, 24 Apr 2023 18:16:42 +0530 Subject: [PATCH] fixed ga code. added py debug --- .../main/java/zingg/common/core/util/Analytics.java | 2 +- config/zingg.conf | 4 ++-- log4j.properties | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common/core/src/main/java/zingg/common/core/util/Analytics.java b/common/core/src/main/java/zingg/common/core/util/Analytics.java index ced1f97eb..a7defc333 100644 --- a/common/core/src/main/java/zingg/common/core/util/Analytics.java +++ b/common/core/src/main/java/zingg/common/core/util/Analytics.java @@ -27,7 +27,7 @@ public class Analytics { //private static final String PATH = "/debug/mp/collect"; //set the path to validate the POST request private static final String API_SECRET = "IYJgNn8KR2Cr0yZIvrMvng"; private static final String API_VERSION = "2"; - private static final String MEASUREMENT_ID = "G- "; + private static final String MEASUREMENT_ID = "G-MWRMGB9652"; private static Map metrics; public static final Log LOG = LogFactory.getLog(Analytics.class); diff --git a/config/zingg.conf b/config/zingg.conf index a45f2f1dd..c2f4f1976 100644 --- a/config/zingg.conf +++ b/config/zingg.conf @@ -15,11 +15,11 @@ spark.default.parallelism=8 spark.debug.maxToStringFields=200 spark.driver.memory=8g spark.executor.memory=8g -spark.jars=/home/zingg/pathto.jar +#spark.jars=/home/zingg/pathto.jar # Additional Jars could be passed to spark through below configuration. Jars list should be comma(,) separated. #spark.jars= #spark.executor.extraClassPath= #spark.driver.extraClassPath= - +#spark.python.profile=true ### Below property must be set for BigQuery #spark.hadoop.fs.gs.impl=com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem diff --git a/log4j.properties b/log4j.properties index 48e367c80..4e3f869d8 100644 --- a/log4j.properties +++ b/log4j.properties @@ -1,4 +1,4 @@ -log4j.rootLogger=DEBUG, FILE, SCREEN +log4j.rootLogger=INFO, FILE, SCREEN log4j.additivity.rootLogger=false # Define the root appender log4j.appender.SCREEN=org.apache.log4j.ConsoleAppender @@ -13,18 +13,18 @@ log4j.appender.FILE.MaxBackupIndex=50 log4j.appender.FILE.layout=org.apache.log4j.PatternLayout log4j.appender.FILE.layout.ConversionPattern=%d{yy/MM/dd HH:mm:ss} %p %c{1}: %m%n log4j.appender.FILE.Append=false -# Print only messages of level DEBUG or above in the package com.foo. +# Print only messages of level INFO or above in the package com.foo. log4j.logger.org.eclipse=OFF -log4j.logger.org.apache.poi=DEBUG +log4j.logger.org.apache.poi=INFO log4j.logger.io.netty=OFF log4j.logger.org.apache.hadoop=WARN log4j.logger.org.apache.spark=WARN, FILE log4j.logger.org.apache.spark.ml=WARN, FILE log4j.logger.org.apache.parquet.hadoop=WARN, FILE -log4j.logger.org.graphframes=DEBUG, FILE +log4j.logger.org.graphframes=INFO, FILE log4j.logger.org.spark_project=OFF log4j.logger.org.sparkproject=OFF -log4j.logger.org.elasticsearch.hadoop=DEBUG +log4j.logger.org.elasticsearch.hadoop=INFO log4j.logger.akka=WARN, FILE log4j.logger.breeze=WARN, FILE -log4j.logger.zingg=DEBUG +log4j.logger.zingg=INFO