Repository: spark Updated Branches: refs/heads/branch-1.4 6e85064f4 -> 3d6a9214e
[SPARK-9496][SQL]do not print the password in config https://issues.apache.org/jira/browse/SPARK-9496 We better do not print the password in log. Author: WangTaoTheTonic <wangtao...@huawei.com> Closes #7815 from WangTaoTheTonic/master and squashes the following commits: c7a5145 [WangTaoTheTonic] do not print the password in config (cherry picked from commit a3a85d73da053c8e2830759fbc68b734081fa4f3) Signed-off-by: Reynold Xin <r...@databricks.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/3d6a9214 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/3d6a9214 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/3d6a9214 Branch: refs/heads/branch-1.4 Commit: 3d6a9214efc1c3a59692160089894176fb190faa Parents: 6e85064 Author: WangTaoTheTonic <wangtao...@huawei.com> Authored: Thu Jul 30 23:50:06 2015 -0700 Committer: Reynold Xin <r...@databricks.com> Committed: Thu Jul 30 23:50:25 2015 -0700 ---------------------------------------------------------------------- .../scala/org/apache/spark/sql/hive/client/ClientWrapper.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/3d6a9214/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/ClientWrapper.scala ---------------------------------------------------------------------- diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/ClientWrapper.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/ClientWrapper.scala index cb96dc0..7ae1809 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/ClientWrapper.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/ClientWrapper.scala @@ -109,7 +109,11 @@ private[hive] class ClientWrapper( // this action explicit. initialConf.setClassLoader(initClassLoader) config.foreach { case (k, v) => - logDebug(s"Hive Config: $k=$v") + if (k.toLowerCase.contains("password")) { + logDebug(s"Hive Config: $k=xxx") + } else { + logDebug(s"Hive Config: $k=$v") + } initialConf.set(k, v) } val newState = new SessionState(initialConf) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org