Re: setting up a local ubuntu VM for building and testing hadoop

2016-01-06 Thread Arun Suresh
Hello Sangjin
I had similar problems recently.. Got around it by modifying my /etc/hosts.
I just update the 127.0.0.1 entry to add the short hostname of the machine
like so :
...
127.0.0.1 localhost 
...


On Wed, Jan 6, 2016 at 8:52 AM, Sangjin Lee  wrote:

> Has anyone set up an ubuntu VM to build hadoop and run unit tests locally?
> I'm familiar with setting up a linux machine to build and test hadoop, but
> a VM (I'm using Parallels on mac) seems to cause issues regarding resolving
> the localhost address. I get all kinds of UnknownHostExceptions and
> variations. I would greatly appreciate the pointers if anyone has set that
> up successfully. Thanks!
>
> Regards,
> Sangjin
>


setting up a local ubuntu VM for building and testing hadoop

2016-01-06 Thread Sangjin Lee
Has anyone set up an ubuntu VM to build hadoop and run unit tests locally?
I'm familiar with setting up a linux machine to build and test hadoop, but
a VM (I'm using Parallels on mac) seems to cause issues regarding resolving
the localhost address. I get all kinds of UnknownHostExceptions and
variations. I would greatly appreciate the pointers if anyone has set that
up successfully. Thanks!

Regards,
Sangjin


Build failed in Jenkins: Hadoop-common-trunk-Java8 #888

2016-01-06 Thread Apache Jenkins Server
See 

Changes:

[junping_du] Add YARN-2975, YARN-3893, YARN-2902 and YARN-4354 to Release 2.6.4 
entry

--
[...truncated 3897 lines...]
[INFO] Compiling 2 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ hadoop-minikdc ---
[INFO] Surefire report directory: 


---
 T E S T S
---

---
 T E S T S
---
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.minikdc.TestMiniKdc
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.328 sec - in 
org.apache.hadoop.minikdc.TestMiniKdc
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.minikdc.TestChangeOrgNameAndDomain
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.962 sec - in 
org.apache.hadoop.minikdc.TestChangeOrgNameAndDomain

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.5:jar (default-jar) @ hadoop-minikdc ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-source-plugin:2.3:jar-no-fork (hadoop-java-sources) @ 
hadoop-minikdc ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-source-plugin:2.3:test-jar-no-fork (hadoop-java-sources) @ 
hadoop-minikdc ---
[INFO] Building jar: 

[INFO] 
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (dist-enforce) @ hadoop-minikdc 
---
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
hadoop-minikdc ---
[INFO] 
[INFO] --- maven-javadoc-plugin:2.8.1:jar (module-javadocs) @ hadoop-minikdc ---
[INFO] 
Loading source files for package org.apache.hadoop.minikdc...
Constructing Javadoc information...
Standard Doclet version 1.8.0
Building tree for all the packages and classes...
Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Generating 

Building index for all the packages and classes...
Generating 

Generating 

Generating 

Building index for all classes...
Generating 

Generating 

[DISCUSSION] Release Plan for Apache Hadoop 2.6.4

2016-01-06 Thread Junping Du
Hello folks,
   Hope everyone had a wonderful holiday and good rest in passed weeks. We 
just had a 2.6.3 release on Dec.17 and now it is a good time to look forward to 
the next branch-2.6 maintenance release - 2.6.4 in the beginning of new year. 
As usual, this release will be based on latest release 2.6.3 but include a 
couple of critical/blocker bug fixes that identified in community recently.

Things Done/TODO:

  + Schedule
-- According to previous email discussion thread in community, we are 
prefering fast-moving way (roughly as monthly) of releasing fixes on 
branch-2.6. So I would expect this release could happen around end of Jan. or 
early of Feb. dependens on if RC & VOTE process going on smoothly. Also, it 
should be after release 2.7.2 to get rid of any possible disturb to that 
release.

  + Branch
-- 2.6.4 will be based on branch-2.6, which has been open to 2.6.4 commits 
for a while. I plan to branch out branch-2.6.4 sometime next week according to 
status of target/fixed fixes.
-- Before 2.6.4 branch is cut off, new commits coming as fix to 2.6.4 is 
good to commit/merge to trunk, branch-2 and branch-2.6.

  + Patches
-- In last couple of days, I went through all critial/blocker bug fixes in 
the coming 2.7.2 release and ping authors/committers on JIRA to ask for the 
same effort on branch-2.6.4. I could do more rounds of the same practice in 
case I could miss something helpful. Also, a kindly reminder from original 
author and committer is also appreciated.
-- So far, 2.6.4 already has 18 fixes as list of [1] shows. However, there 
are totally 55 fixes target for 2.6.4 for now [2], so there is still a large 
gap and we need to work harder to resolve these tickets as many as we can and 
push out some non-critical ones to meet our promise of date.

  + Release
-- Still too early to do anything directly related to RC. Will work on 
resolve fixes in list of [2] first, and appreciate any help on this effort.

Any thoughts? Especially on schedule and list of patches that should be 
included?


Cheers,

Junping

[1] Tickets fixed in 2.6.4:
http://s.apache.org/vJB

[2] Tickets targets for 2.6.4:
http://s.apache.org/JpE



From: Junping Du
Sent: Thursday, December 17, 2015 1:36 PM
To: common-dev@hadoop.apache.org; yarn-...@hadoop.apache.org
Cc: hdfs-...@hadoop.apache.org; mapreduce-...@hadoop.apache.org; 
junping...@apache.org
Subject: [RESULT] [VOTE] Release Apache Hadoop 2.6.3 RC0

Hi all in community,
 I give my binding +1 to close the vote for 2.6.3 RC0. With 18 +1s (10 
binding), one +0 (non-binding) and no -1s, the vote passes.

Thanks for everyone who tried the release candidate and voted. Thanks Vinod, 
Sangjin and Steve to provide me advices on release process.

I'll push the release bits and send out an announcement for 2.6.3 soon.

Cheers,

Junping

From: Xuan Gong 
Sent: Thursday, December 17, 2015 12:29 AM
To: common-dev@hadoop.apache.org
Cc: hdfs-...@hadoop.apache.org; mapreduce-...@hadoop.apache.org; 
yarn-...@hadoop.apache.org; junping...@apache.org
Subject: Re: [VOTE] Release Apache Hadoop 2.6.3 RC0

+1 (binding),

Build and deploy the cluster from source code.
Ran a few example jobs and passed successfully.

Xuan Gong

> On Dec 16, 2015, at 4:07 PM, Arpit Agarwal  wrote:
>
> +1 (binding)
>
> - Verified signatures for source and binary distributions
> - Built jars from source with java 1.7.0_79
> - Deployed single-node pseudo-cluster
> - Ran example map reduce jobs
> - Ran hdfs admin commands, verified NN web UI shows expected usages
>
>
>
> On 12/11/15, 4:16 PM, "Junping Du"  wrote:
>
>>
>> Hi all developers in hadoop community,
>>  I've created a release candidate RC0 for Apache Hadoop 2.6.3 (the next 
>> maintenance release to follow up 2.6.2.) according to email thread of 
>> release plan 2.6.3 [1]. Sorry for this RC coming a bit late as several 
>> blocker issues were getting committed until yesterday. Below is the details:
>>
>> The RC is available for validation at:
>> *http://people.apache.org/~junping_du/hadoop-2.6.3-RC0/
>> *
>>
>> The RC tag in git is: release-2.6.3-RC0
>>
>> The maven artifacts are staged via repository.apache.org at:
>> *https://repository.apache.org/content/repositories/orgapachehadoop-1025/?
>> *
>>
>> You can find my public key at:
>> http://svn.apache.org/repos/asf/hadoop/common/dist/KEYS
>>
>> Please try the release and vote. The vote will run for the usual 5 days.
>>
>> Thanks and happy weekend!
>>
>>
>> Cheers,
>>
>> Junping
>>
>>
>> [1]: 2.6.3 release plan: http://markmail.org/thread/nc2jogbgni37vu6y
>>


Build failed in Jenkins: Hadoop-common-trunk-Java8 #889

2016-01-06 Thread Apache Jenkins Server
See 

Changes:

[wheat9] HDFS-9047. Retire libwebhdfs. Contributed by Haohui Mai.

--
[...truncated 5818 lines...]
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.394 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileLzoCodecsByteArrays
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileLzoCodecsStreams
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.374 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileLzoCodecsStreams
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileUnsortedByteArrays
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.814 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileUnsortedByteArrays
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileStreams
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.348 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileStreams
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFile
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.063 sec - in 
org.apache.hadoop.io.file.tfile.TestTFile
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running 
org.apache.hadoop.io.file.tfile.TestTFileNoneCodecsJClassComparatorByteArrays
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.246 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileNoneCodecsJClassComparatorByteArrays
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileJClassComparatorByteArrays
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.068 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileJClassComparatorByteArrays
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileNoneCodecsStreams
Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.334 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileNoneCodecsStreams
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileSplit
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.975 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileSplit
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileComparator2
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.98 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileComparator2
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileNoneCodecsByteArrays
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.17 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileNoneCodecsByteArrays
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileByteArrays
Tests run: 25, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.169 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileByteArrays
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestTFileSeqFileComparison
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.656 sec - in 
org.apache.hadoop.io.file.tfile.TestTFileSeqFileComparison
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.file.tfile.TestVLong
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.5 sec - in 
org.apache.hadoop.io.file.tfile.TestVLong
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.TestTextNonUTF8
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.183 sec - in 
org.apache.hadoop.io.TestTextNonUTF8
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running org.apache.hadoop.io.TestArrayWritable
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.224 sec - in 
org.apache.hadoop.io.TestArrayWritable
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=768m; 
support was removed in 8.0
Running 

[jira] [Created] (HADOOP-12693) Many misusage of assertEquals(expected, actual)

2016-01-06 Thread Akihiro Suda (JIRA)
Akihiro Suda created HADOOP-12693:
-

 Summary: Many misusage of assertEquals(expected, actual)
 Key: HADOOP-12693
 URL: https://issues.apache.org/jira/browse/HADOOP-12693
 Project: Hadoop Common
  Issue Type: Test
Reporter: Akihiro Suda
Priority: Trivial
 Attachments: just-rough-approx.txt

The first arg of {{org.JUnit.Assert.assertEquals()}} should be an {{expected}} 
value, and the second one should be an {{actual}} value.

{code}
void assertEquals(T expected, T actual);
{code}

http://junit.org/apidocs/org/junit/Assert.html#assertEquals(java.lang.Object, 
java.lang.Object)

However, there are so many violations in Hadoop, which can make a misleading 
message like this:
{code}
AssertionError: expected: but was:
{code}.

Please refer to {{just-rough-approx.txt}}.




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


Jenkins build is back to normal : Hadoop-common-trunk-Java8 #890

2016-01-06 Thread Apache Jenkins Server
See 



[jira] [Created] (HADOOP-12692) Maven's DependencyConvergence rule failed

2016-01-06 Thread Wei-Chiu Chuang (JIRA)
Wei-Chiu Chuang created HADOOP-12692:


 Summary: Maven's DependencyConvergence rule failed
 Key: HADOOP-12692
 URL: https://issues.apache.org/jira/browse/HADOOP-12692
 Project: Hadoop Common
  Issue Type: Bug
Affects Versions: 3.0.0
 Environment: Jenkins
Reporter: Wei-Chiu Chuang


I am seeing a Maven warning in Jenkins:
https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/761/console

This nightly job failed because of a Maven rule failed
{noformat}
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence 
failed with message:
Failed while enforcing releasability the error(s) are [
Dependency convergence error for org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT 
paths to dependency are:
+-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT
and
+-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-common:3.0.0-SNAPSHOT
+-org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT
and
+-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-common:3.0.0-SNAPSHOT
+-org.apache.hadoop:hadoop-auth:3.0.0-SNAPSHOT
and
+-org.apache.hadoop:hadoop-hdfs-httpfs:3.0.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-auth:3.0.0-20160107.005725-7960
]
{noformat}

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (depcheck) on 
project hadoop-hdfs-httpfs: Some Enforcer rules have failed. Look above for 
specific messages explaining why the rule failed. -> [Help 1]
{noformat}



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


Build failed in Jenkins: Hadoop-Common-trunk #2185

2016-01-06 Thread Apache Jenkins Server
See 

Changes:

[arp] HDFS-9498. Move code that tracks blocks with future generation stamps to

--
[...truncated 5415 lines...]
Running org.apache.hadoop.security.TestGroupsCaching
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.832 sec - in 
org.apache.hadoop.security.TestGroupsCaching
Running org.apache.hadoop.security.ssl.TestSSLFactory
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.747 sec - in 
org.apache.hadoop.security.ssl.TestSSLFactory
Running org.apache.hadoop.security.ssl.TestReloadingX509TrustManager
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.55 sec - in 
org.apache.hadoop.security.ssl.TestReloadingX509TrustManager
Running org.apache.hadoop.security.TestUGILoginFromKeytab
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.376 sec - in 
org.apache.hadoop.security.TestUGILoginFromKeytab
Running org.apache.hadoop.security.TestUserGroupInformation
Tests run: 34, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.638 sec - in 
org.apache.hadoop.security.TestUserGroupInformation
Running org.apache.hadoop.security.TestUGIWithExternalKdc
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.08 sec - in 
org.apache.hadoop.security.TestUGIWithExternalKdc
Running org.apache.hadoop.security.http.TestCrossOriginFilter
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.433 sec - in 
org.apache.hadoop.security.http.TestCrossOriginFilter
Running org.apache.hadoop.security.TestProxyUserFromEnv
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.546 sec - in 
org.apache.hadoop.security.TestProxyUserFromEnv
Running org.apache.hadoop.security.authorize.TestProxyUsers
Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.953 sec - in 
org.apache.hadoop.security.authorize.TestProxyUsers
Running org.apache.hadoop.security.authorize.TestProxyServers
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.426 sec - in 
org.apache.hadoop.security.authorize.TestProxyServers
Running org.apache.hadoop.security.authorize.TestServiceAuthorization
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.147 sec - in 
org.apache.hadoop.security.authorize.TestServiceAuthorization
Running org.apache.hadoop.security.authorize.TestAccessControlList
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.862 sec - in 
org.apache.hadoop.security.authorize.TestAccessControlList
Running org.apache.hadoop.security.alias.TestCredShell
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.184 sec - in 
org.apache.hadoop.security.alias.TestCredShell
Running org.apache.hadoop.security.alias.TestCredentialProviderFactory
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.235 sec - in 
org.apache.hadoop.security.alias.TestCredentialProviderFactory
Running org.apache.hadoop.security.alias.TestCredentialProvider
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec - in 
org.apache.hadoop.security.alias.TestCredentialProvider
Running org.apache.hadoop.security.TestAuthenticationFilter
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.573 sec - in 
org.apache.hadoop.security.TestAuthenticationFilter
Running org.apache.hadoop.security.TestLdapGroupsMapping
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.383 sec - in 
org.apache.hadoop.security.TestLdapGroupsMapping
Running org.apache.hadoop.security.token.TestToken
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.449 sec - in 
org.apache.hadoop.security.token.TestToken
Running org.apache.hadoop.security.token.delegation.TestDelegationToken
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 30.938 sec - 
in org.apache.hadoop.security.token.delegation.TestDelegationToken
Running 
org.apache.hadoop.security.token.delegation.web.TestDelegationTokenAuthenticationHandlerWithMocks
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.483 sec - in 
org.apache.hadoop.security.token.delegation.web.TestDelegationTokenAuthenticationHandlerWithMocks
Running 
org.apache.hadoop.security.token.delegation.web.TestDelegationTokenManager
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.9 sec - in 
org.apache.hadoop.security.token.delegation.web.TestDelegationTokenManager
Running org.apache.hadoop.security.token.delegation.web.TestWebDelegationToken
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.225 sec - 
in org.apache.hadoop.security.token.delegation.web.TestWebDelegationToken
Running 
org.apache.hadoop.security.token.delegation.TestZKDelegationTokenSecretManager
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 54.788 sec - in 
org.apache.hadoop.security.token.delegation.TestZKDelegationTokenSecretManager
Running org.apache.hadoop.security.TestShellBasedUnixGroupsMapping
Tests 

[jira] [Created] (HADOOP-12691) Add CSRF Filter to Hadoop Common

2016-01-06 Thread Larry McCay (JIRA)
Larry McCay created HADOOP-12691:


 Summary: Add CSRF Filter to Hadoop Common
 Key: HADOOP-12691
 URL: https://issues.apache.org/jira/browse/HADOOP-12691
 Project: Hadoop Common
  Issue Type: Bug
  Components: security
Reporter: Larry McCay
Assignee: Larry McCay
 Fix For: 3.0.0


CSRF prevention for REST APIs can be provided through a common servlet filter. 
This filter would check for the existence of an expected (configurable) HTTP 
header - such as X-Requested-By.

The fact that CSRF attacks are entirely browser based means that the above 
approach can ensure that requests are coming from either: applications served 
by the same origin as the REST API or that there is explicit policy 
configuration that allows the setting of a header on XmlHttpRequest from 
another origin.



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


Jenkins build is back to normal : Hadoop-Common-trunk #2186

2016-01-06 Thread Apache Jenkins Server
See