From 1cbff8ff824a330fe34a49400bdec963e74f7015 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Fri, 6 Jun 2014 00:55:14 +0000 Subject: [PATCH] HDFS-6476. Print out the KeyProvider after finding KP successfully on startup. Contributed by Juan Yu. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/fs-encryption@1600799 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES-fs-encryption.txt | 3 +++ .../java/org/apache/hadoop/hdfs/server/namenode/NameNode.java | 1 + 2 files changed, 4 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES-fs-encryption.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES-fs-encryption.txt index 4d02b398a7..10e5abbd9f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES-fs-encryption.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES-fs-encryption.txt @@ -8,6 +8,9 @@ fs-encryption (Unreleased) IMPROVEMENTS + HDFS-6476. Print out the KeyProvider after finding KP successfully on + startup. (Juan Yu via wang) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java index 504e3ed201..8f916ce253 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java @@ -730,6 +730,7 @@ private void initializeKeyProvider(final Configuration conf) { LOG.error(err); throw new RuntimeException(err); } + LOG.info("Found KeyProvider: " + provider.toString()); } catch (IOException e) { LOG.error("Exception while initializing KeyProvider", e); }