You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sentry.apache.org by Dapeng Sun <da...@intel.com> on 2015/02/06 04:26:41 UTC

Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/
-----------------------------------------------------------

Review request for sentry.


Bugs: SENTRY-609
    https://issues.apache.org/jira/browse/SENTRY-609


Repository: sentry


Description
-------

26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
Error Message

java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
Stacktrace

java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)


Diffs
-----

  sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/HiveServerFactory.java 934ceb8 

Diff: https://reviews.apache.org/r/30707/diff/


Testing
-------

Unit Tests in local


Thanks,

Dapeng Sun


Re: Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

Posted by Dapeng Sun <da...@intel.com>.

> On 二月 6, 2015, 2:03 p.m., Colin Ma wrote:
> > sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java, line 83
> > <https://reviews.apache.org/r/30707/diff/2/?file=852035#file852035line83>
> >
> >     There should be a @After method, to delete the temp dir.

Good suggestion.


> On 二月 6, 2015, 2:03 p.m., Colin Ma wrote:
> > sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java, line 37
> > <https://reviews.apache.org/r/30707/diff/2/?file=852036#file852036line37>
> >
> >     There should be a @After method, to delete the temp dir.

Good suggestion.


- Dapeng


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/#review71380
-----------------------------------------------------------


On 二月 6, 2015, 1:49 p.m., Dapeng Sun wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30707/
> -----------------------------------------------------------
> 
> (Updated 二月 6, 2015, 1:49 p.m.)
> 
> 
> Review request for sentry.
> 
> 
> Bugs: SENTRY-609
>     https://issues.apache.org/jira/browse/SENTRY-609
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> 26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
> Error Message
> 
> java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> Stacktrace
> 
> java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> 	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
> 	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
> 	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java eebf419 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java e99d37f 
> 
> Diff: https://reviews.apache.org/r/30707/diff/
> 
> 
> Testing
> -------
> 
> Unit Tests in local
> 
> 
> Thanks,
> 
> Dapeng Sun
> 
>


Re: Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

Posted by Colin Ma <ju...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/#review71380
-----------------------------------------------------------



sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java
<https://reviews.apache.org/r/30707/#comment117093>

    There should be a @After method, to delete the temp dir.



sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java
<https://reviews.apache.org/r/30707/#comment117094>

    There should be a @After method, to delete the temp dir.


- Colin Ma


On Feb. 6, 2015, 5:49 a.m., Dapeng Sun wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30707/
> -----------------------------------------------------------
> 
> (Updated Feb. 6, 2015, 5:49 a.m.)
> 
> 
> Review request for sentry.
> 
> 
> Bugs: SENTRY-609
>     https://issues.apache.org/jira/browse/SENTRY-609
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> 26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
> Error Message
> 
> java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> Stacktrace
> 
> java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> 	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
> 	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
> 	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java eebf419 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java e99d37f 
> 
> Diff: https://reviews.apache.org/r/30707/diff/
> 
> 
> Testing
> -------
> 
> Unit Tests in local
> 
> 
> Thanks,
> 
> Dapeng Sun
> 
>


Re: Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

Posted by Colin Ma <ju...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/#review71384
-----------------------------------------------------------

Ship it!


Ship It!

- Colin Ma


On Feb. 6, 2015, 6:25 a.m., Dapeng Sun wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30707/
> -----------------------------------------------------------
> 
> (Updated Feb. 6, 2015, 6:25 a.m.)
> 
> 
> Review request for sentry.
> 
> 
> Bugs: SENTRY-609
>     https://issues.apache.org/jira/browse/SENTRY-609
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> 26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
> Error Message
> 
> java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> Stacktrace
> 
> java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> 	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
> 	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
> 	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)
> 
> 
> Diffs
> -----
> 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java eebf419 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java e99d37f 
> 
> Diff: https://reviews.apache.org/r/30707/diff/
> 
> 
> Testing
> -------
> 
> Unit Tests in local
> 
> 
> Thanks,
> 
> Dapeng Sun
> 
>


Re: Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

Posted by Colin Ma <ju...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/#review72083
-----------------------------------------------------------

Ship it!


Ship It!

- Colin Ma


On Feb. 12, 2015, 1:44 a.m., Dapeng Sun wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30707/
> -----------------------------------------------------------
> 
> (Updated Feb. 12, 2015, 1:44 a.m.)
> 
> 
> Review request for sentry.
> 
> 
> Bugs: SENTRY-609
>     https://issues.apache.org/jira/browse/SENTRY-609
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> 26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
> Error Message
> 
> java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> Stacktrace
> 
> java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
> 	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
> 	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
> 	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
> 	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)
> 
> 
> Diffs
> -----
> 
>   pom.xml 65c2e75 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java eebf419 
>   sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java e99d37f 
>   sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/HiveServerFactory.java 934ceb8 
>   sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/InternalHiveServer.java a19cbd3 
> 
> Diff: https://reviews.apache.org/r/30707/diff/
> 
> 
> Testing
> -------
> 
> Unit Tests in local
> 
> 
> Thanks,
> 
> Dapeng Sun
> 
>


Re: Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

Posted by Dapeng Sun <da...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/
-----------------------------------------------------------

(Updated 二月 12, 2015, 9:44 a.m.)


Review request for sentry.


Changes
-------

Unit Test Passed on Jenkins Ubuntu slave(ubuntu-6) https://builds.apache.org/job/PreCommit-SENTRY-Build/429/


Bugs: SENTRY-609
    https://issues.apache.org/jira/browse/SENTRY-609


Repository: sentry


Description
-------

26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
Error Message

java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
Stacktrace

java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)


Diffs (updated)
-----

  pom.xml 65c2e75 
  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java eebf419 
  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java e99d37f 
  sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/HiveServerFactory.java 934ceb8 
  sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/hiveserver/InternalHiveServer.java a19cbd3 

Diff: https://reviews.apache.org/r/30707/diff/


Testing
-------

Unit Tests in local


Thanks,

Dapeng Sun


Re: Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

Posted by Dapeng Sun <da...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/
-----------------------------------------------------------

(Updated 二月 6, 2015, 2:25 p.m.)


Review request for sentry.


Changes
-------

update patch accroding Colin's feedback.


Bugs: SENTRY-609
    https://issues.apache.org/jira/browse/SENTRY-609


Repository: sentry


Description
-------

26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
Error Message

java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
Stacktrace

java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)


Diffs (updated)
-----

  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java eebf419 
  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java e99d37f 

Diff: https://reviews.apache.org/r/30707/diff/


Testing
-------

Unit Tests in local


Thanks,

Dapeng Sun


Re: Review Request 30707: SENTRY-609: [Unit Test] Many tests failing with error "The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x"

Posted by Dapeng Sun <da...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30707/
-----------------------------------------------------------

(Updated 二月 6, 2015, 1:49 p.m.)


Review request for sentry.


Changes
-------

Thank Colin for helping to point out it.


Bugs: SENTRY-609
    https://issues.apache.org/jira/browse/SENTRY-609


Repository: sentry


Description
-------

26 tests are failing in this run: https://builds.apache.org/job/Sentry-jdk-1.7/196/org.apache.sentry$sentry-binding-hive/testReport/ with the following error:
Error Message

java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
Stacktrace

java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rwxr-xr-x
	at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:535)
	at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:484)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:436)
	at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:392)
	at org.apache.sentry.binding.hive.TestSentryHiveAuthorizationTaskFactory.setup(TestSentryHiveAuthorizationTaskFactory.java:80)


Diffs (updated)
-----

  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestSentryHiveAuthorizationTaskFactory.java eebf419 
  sentry-binding/sentry-binding-hive/src/test/java/org/apache/sentry/binding/hive/TestURI.java e99d37f 

Diff: https://reviews.apache.org/r/30707/diff/


Testing
-------

Unit Tests in local


Thanks,

Dapeng Sun