[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-22 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14556090#comment-14556090
 ] 

Hudson commented on HDFS-8451:
--

SUCCESS: Integrated in Hadoop-Yarn-trunk-Java8 #204 (See 
[https://builds.apache.org/job/Hadoop-Yarn-trunk-Java8/204/])
HDFS-8451. DFSClient probe for encryption testing interprets empty URI property 
for enabled. Contributed by Steve Loughran. (xyao: rev 
05e04f34f27149537fdb89f46af26bee14531ca4)
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/KeyProviderCache.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Fix For: 2.7.1

 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-22 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14556076#comment-14556076
 ] 

Hudson commented on HDFS-8451:
--

SUCCESS: Integrated in Hadoop-Yarn-trunk #935 (See 
[https://builds.apache.org/job/Hadoop-Yarn-trunk/935/])
HDFS-8451. DFSClient probe for encryption testing interprets empty URI property 
for enabled. Contributed by Steve Loughran. (xyao: rev 
05e04f34f27149537fdb89f46af26bee14531ca4)
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/KeyProviderCache.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java


 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Fix For: 2.7.1

 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-22 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14556328#comment-14556328
 ] 

Hudson commented on HDFS-8451:
--

SUCCESS: Integrated in Hadoop-Mapreduce-trunk #2151 (See 
[https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2151/])
HDFS-8451. DFSClient probe for encryption testing interprets empty URI property 
for enabled. Contributed by Steve Loughran. (xyao: rev 
05e04f34f27149537fdb89f46af26bee14531ca4)
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/KeyProviderCache.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java


 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Fix For: 2.7.1

 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-22 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14556195#comment-14556195
 ] 

Hudson commented on HDFS-8451:
--

FAILURE: Integrated in Hadoop-Hdfs-trunk #2133 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-trunk/2133/])
HDFS-8451. DFSClient probe for encryption testing interprets empty URI property 
for enabled. Contributed by Steve Loughran. (xyao: rev 
05e04f34f27149537fdb89f46af26bee14531ca4)
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/KeyProviderCache.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java


 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Fix For: 2.7.1

 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-22 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14556293#comment-14556293
 ] 

Hudson commented on HDFS-8451:
--

SUCCESS: Integrated in Hadoop-Mapreduce-trunk-Java8 #203 (See 
[https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Java8/203/])
HDFS-8451. DFSClient probe for encryption testing interprets empty URI property 
for enabled. Contributed by Steve Loughran. (xyao: rev 
05e04f34f27149537fdb89f46af26bee14531ca4)
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/KeyProviderCache.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java


 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Fix For: 2.7.1

 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-22 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14556222#comment-14556222
 ] 

Hudson commented on HDFS-8451:
--

FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #193 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/193/])
HDFS-8451. DFSClient probe for encryption testing interprets empty URI property 
for enabled. Contributed by Steve Loughran. (xyao: rev 
05e04f34f27149537fdb89f46af26bee14531ca4)
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/KeyProviderCache.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Fix For: 2.7.1

 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-21 Thread Xiaoyu Yao (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14554829#comment-14554829
 ] 

Xiaoyu Yao commented on HDFS-8451:
--

+1 for the fix.

 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-21 Thread Xiaoyu Yao (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14554846#comment-14554846
 ] 

Xiaoyu Yao commented on HDFS-8451:
--

I will commit it shortly.

 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-21 Thread Xiaoyu Yao (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14554759#comment-14554759
 ] 

Xiaoyu Yao commented on HDFS-8451:
--

Thanks [~steve_l] for working on this. The patch looks good to me. 
We could also fix this by checking if (dfs.getKeyProvider != null) instead of 
using if (dfs.isHDFSEncryptionEnabled()) in 
DistributedFileSystem#addDelegationTokens(). This way, invalid key provider 
URIs (such as null or empty) could naturally be handled in 
KeyProviderCache#get(). And we could also remove isHDFSEncryptionEnabled() 
which is only used in DistributedFileSystem#addDelegationTokens.

 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-21 Thread Steve Loughran (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14553995#comment-14553995
 ] 

Steve Loughran commented on HDFS-8451:
--

Here's the check for HDFS encryption
{code}
  public boolean isHDFSEncryptionEnabled() {
return conf.get(
DFSConfigKeys.DFS_ENCRYPTION_KEY_PROVIDER_URI, null) != null;
  }
{code}

The presence of an empty {{dfs.encryption.key.provider.uri}} is enough to 
fail this test, because the result isn't null, it is .

It's not enough to have an empty property (as ramya verified) —the property 
must be completely deleted.

So: I think it's a bug in the DFSClient check; it should be something like:

{code}
  public boolean isHDFSEncryptionEnabled() {
   String provider = conf.get(DFSConfigKeys.DFS_ENCRYPTION_KEY_PROVIDER_URI, 
) 
return !provider.isEmpty();
  }
{code}

That is: if the provider URI is  then there's no key provider, hence no 
encryption.

Fix is trivial, writing tests to verify that everything work will take slightly 
longer.

 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
   Original Estimate: 1h
  Remaining Estimate: 1h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-21 Thread Hadoop QA (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14554368#comment-14554368
 ] 

Hadoop QA commented on HDFS-8451:
-

\\
\\
| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | pre-patch |  17m  8s | Pre-patch trunk compilation is 
healthy. |
| {color:green}+1{color} | @author |   0m  0s | The patch does not contain any 
@author tags. |
| {color:green}+1{color} | tests included |   0m  0s | The patch appears to 
include 2 new or modified test files. |
| {color:green}+1{color} | javac |   7m 35s | There were no new javac warning 
messages. |
| {color:green}+1{color} | javadoc |   9m 52s | There were no new javadoc 
warning messages. |
| {color:green}+1{color} | release audit |   0m 23s | The applied patch does 
not increase the total number of release audit warnings. |
| {color:red}-1{color} | checkstyle |   2m 14s | The applied patch generated  1 
new checkstyle issues (total was 177, now 177). |
| {color:green}+1{color} | whitespace |   0m  1s | The patch has no lines that 
end in whitespace. |
| {color:green}+1{color} | install |   1m 34s | mvn install still works. |
| {color:green}+1{color} | eclipse:eclipse |   0m 32s | The patch built with 
eclipse:eclipse. |
| {color:green}+1{color} | findbugs |   3m  9s | The patch does not introduce 
any new Findbugs (version 3.0.0) warnings. |
| {color:green}+1{color} | native |   3m 21s | Pre-build of native portion |
| {color:red}-1{color} | hdfs tests | 162m 58s | Tests failed in hadoop-hdfs. |
| | | 208m 55s | |
\\
\\
|| Reason || Tests ||
| Failed unit tests | hadoop.hdfs.shortcircuit.TestShortCircuitLocalRead |
\\
\\
|| Subsystem || Report/Notes ||
| Patch URL | 
http://issues.apache.org/jira/secure/attachment/12734418/HDFS-8451-001.patch |
| Optional Tests | javadoc javac unit findbugs checkstyle |
| git revision | trunk / 0e4f108 |
| checkstyle |  
https://builds.apache.org/job/PreCommit-HDFS-Build/11083/artifact/patchprocess/diffcheckstylehadoop-hdfs.txt
 |
| hadoop-hdfs test log | 
https://builds.apache.org/job/PreCommit-HDFS-Build/11083/artifact/patchprocess/testrun_hadoop-hdfs.txt
 |
| Test Results | 
https://builds.apache.org/job/PreCommit-HDFS-Build/11083/testReport/ |
| Java | 1.7.0_55 |
| uname | Linux asf904.gq1.ygridcore.net 3.13.0-36-lowlatency #63-Ubuntu SMP 
PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux |
| Console output | 
https://builds.apache.org/job/PreCommit-HDFS-Build/11083/console |


This message was automatically generated.

 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-21 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14554879#comment-14554879
 ] 

Hudson commented on HDFS-8451:
--

FAILURE: Integrated in Hadoop-trunk-Commit #7884 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/7884/])
HDFS-8451. DFSClient probe for encryption testing interprets empty URI property 
for enabled. Contributed by Steve Loughran. (xyao: rev 
05e04f34f27149537fdb89f46af26bee14531ca4)
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/KeyProviderCache.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZones.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSUtil.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
* 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDFSUtil.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt


 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HDFS-8451) DFSClient probe for encryption testing interprets empty URI property for enabled

2015-05-21 Thread Steve Loughran (JIRA)

[ 
https://issues.apache.org/jira/browse/HDFS-8451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14554552#comment-14554552
 ] 

Steve Loughran commented on HDFS-8451:
--

Test failure is about a zip exception reading core-default.xml. That looks to 
me like one build has just stamped on the maven artifacts of another. Unrelated 
to this JIRA at all. Cancelling and restarting just to demonstrate.

 DFSClient probe for encryption testing interprets empty URI property for 
 enabled
 --

 Key: HDFS-8451
 URL: https://issues.apache.org/jira/browse/HDFS-8451
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: encryption
Affects Versions: 2.7.1
Reporter: Steve Loughran
Assignee: Steve Loughran
Priority: Blocker
 Attachments: HDFS-8451-001.patch

   Original Estimate: 1h
  Time Spent: 0.5h
  Remaining Estimate: 0.5h

 HDFS-7931 added a check in DFSClient for encryption 
 {{isHDFSEncryptionEnabled()}}, looking for the property 
 {{dfs.encryption.key.provider.uri}.
 This probe returns true even if the property is empty.
 If there is an empty provider.uri property, you get an NPE when a YARN client 
 tries to set up the tokens to deploy an AM.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)