You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2018/11/01 16:04:08 UTC

[3/7] impala git commit: IMPALA-7786: Start HMS and Sentry in debug mode in the minicluster

IMPALA-7786: Start HMS and Sentry in debug mode in the minicluster

This patch updates the HMS and Sentry run scripts to start HMS and
Sentry in debug mode in the minicluster to make it easier to debug
issues related to HMS and Sentry.

HMS debug port: 30010
Sentry debug port: 30020

Testing:
- Connected the debugger to both HMS and Sentry.

Change-Id: I29b025cbde36ef398ea36fbe69eff26e27d93e48
Reviewed-on: http://gerrit.cloudera.org:8080/11826
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/aff174c7
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/aff174c7
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/aff174c7

Branch: refs/heads/master
Commit: aff174c7282ed1587e74e2d8f31c70c1234d73c3
Parents: e03f720
Author: Fredy Wijaya <fw...@cloudera.com>
Authored: Tue Oct 30 13:33:26 2018 -0700
Committer: Impala Public Jenkins <im...@cloudera.com>
Committed: Thu Nov 1 02:01:07 2018 +0000

----------------------------------------------------------------------
 testdata/bin/run-hive-server.sh    | 2 ++
 testdata/bin/run-sentry-service.sh | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/impala/blob/aff174c7/testdata/bin/run-hive-server.sh
----------------------------------------------------------------------
diff --git a/testdata/bin/run-hive-server.sh b/testdata/bin/run-hive-server.sh
index fbeba72..dc43aa8 100755
--- a/testdata/bin/run-hive-server.sh
+++ b/testdata/bin/run-hive-server.sh
@@ -63,6 +63,8 @@ done
 # Kill for a clean start.
 ${CLUSTER_BIN}/kill-hive-server.sh &> /dev/null
 
+export HIVE_METASTORE_HADOOP_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30010"
+
 # Starts a Hive Metastore Server on the specified port.
 # To debug log4j2 loading issues, add to HADOOP_CLIENT_OPTS:
 #   -Dorg.apache.logging.log4j.simplelog.StatusLogger.level=TRACE

http://git-wip-us.apache.org/repos/asf/impala/blob/aff174c7/testdata/bin/run-sentry-service.sh
----------------------------------------------------------------------
diff --git a/testdata/bin/run-sentry-service.sh b/testdata/bin/run-sentry-service.sh
index 7c6167c..793696b 100755
--- a/testdata/bin/run-sentry-service.sh
+++ b/testdata/bin/run-sentry-service.sh
@@ -43,6 +43,8 @@ mkdir -p "${LOGDIR}" || true
 # First kill any running instances of the service.
 $IMPALA_HOME/testdata/bin/kill-sentry-service.sh
 
+export HADOOP_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30020"
+
 # Sentry picks up JARs from the HADOOP_CLASSPATH and not the CLASSPATH.
 export HADOOP_CLASSPATH=${POSTGRES_JDBC_DRIVER}:$IMPALA_HOME/fe/target/test-classes
 # Start the service.