[
https://issues.apache.org/jira/browse/BIGTOP-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14052842#comment-14052842
]
jay vyas edited comment on BIGTOP-1341 at 7/6/14 10:27 PM:
-----------------------------------------------------------
After more digging, here is the error:
We are expecting that we can change perms to 777, as shown in this regex:
{noformat}
14/07/05 01:15:57 INFO cli.CLITestHelper: Expected output:
[^-rwxrwxrwx( )*1( )*[a-z]*( )*hadoop( )*0( )*[0-9]{4,}-[0-9]{noformat}
But, hdfs is only able to change the perms (of a *file*) to -rw-rw-rw (makes
sense, since you don't execute in hdfs). So, when I run:
{noformat}
hadoop fs -chmod 777
hdfs://localhost.localdomain:17020/tmp/testcli_1404537330373/file1
{noformat}
yields permissions of:
{noformat}
-rw-rw-rw- 1 hdfs hadoop 0 2014-07-05 01:15
hdfs://localhost.localdomain:17020/tmp/testcli_1404537330373/file4
{noformat}
Is custom umask or something required here? If so, should we add a simple
Assert to the beggining of the tests as part of this patch?
was (Author: jayunit100):
After more digging, here is the error:
We are expecting that we can change perms to 777, as shown in this regex:
{noformat}
14/07/05 01:15:57 INFO cli.CLITestHelper: Expected output:
[^-rwxrwxrwx( )*1( )*[a-z]*( )*hadoop( )*0( )*[0-9]{4,}-[0-9]{noformat}
But, hdfs is only able to change the perms to -rw-rw-rw (makes sense, since you
don't execute in hdfs). So, when I run:
{noformat}
hadoop fs -chmod 777
hdfs://localhost.localdomain:17020/tmp/testcli_1404537330373/file1
{noformat}
yields permissions of:
{noformat}
-rw-rw-rw- 1 hdfs hadoop 0 2014-07-05 01:15
hdfs://localhost.localdomain:17020/tmp/testcli_1404537330373/file4
{noformat}
Is custom umask or something required here? If so, should we add a simple
Assert to the beggining of the tests as part of this patch?
> Cleanup of TestCLI code
> -----------------------
>
> Key: BIGTOP-1341
> URL: https://issues.apache.org/jira/browse/BIGTOP-1341
> Project: Bigtop
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 0.8.0
> Reporter: Martin Bukatovic
> Priority: Minor
> Attachments: BIGTOP-1341.1.patch
>
>
> Before we try to extend TestCLI to work on any hadoop filesystem, we need to
> clean up the current code a little.
--
This message was sent by Atlassian JIRA
(v6.2#6252)