You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Mohan (JIRA)" <ji...@apache.org> on 2017/11/27 14:49:00 UTC

[jira] [Commented] (METRON-1332) Metron Rest endpoints fails to list, create and delete the files

    [ https://issues.apache.org/jira/browse/METRON-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266894#comment-16266894 ] 

Mohan commented on METRON-1332:
-------------------------------

It's My bad that I was giving paths  with double quote "" , which was causing this issue , I removed the double quote and it works now . 

> Metron Rest endpoints fails to list, create and delete the files 
> -----------------------------------------------------------------
>
>                 Key: METRON-1332
>                 URL: https://issues.apache.org/jira/browse/METRON-1332
>             Project: Metron
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Mohan
>            Assignee: Mohan
>
> listing a directory "/user/" using '/api/v1/hdfs/list' I see the below exception . 
> {code:java}
> {
>   "responseCode": 500,
>   "message": "File hdfs://nat-r7-hxes-metron-11.openstacklocal:8020/user/metron/[\"/user/\"] does not exist.",
>   "fullMessage": "RestException: File hdfs://nat-r7-hxes-metron-11.openstacklocal:8020/user/metron/[\"/user/\"] does not exist."
> }
> {code}
> Where as i am able to list the same directory as 'metron' user from the command prompt 
> {code:java}
> [metron@nat-r7-hxes-metron-1 root]$ hadoop fs -ls /user/
> Found 52 items
> drwx--x--x   - accumulo          accumulo                   0 2017-11-20 08:52 /user/accumulo
> drwxrwx---   - ambari-qa         hdfs                       0 2017-11-20 07:53 /user/ambari-qa
> drwx--x--x   - bob               bob                        0 2017-11-20 08:52 /user/bob
> drwx--x--x   - falcon            falcon                     0 2017-11-20 08:52 /user/falcon
> drwx--x--x   - guest             guest                      0 2017-11-20 08:52 /user/guest
> drwx--x--x   - hbase             hbase                      0 2017-11-20 07:54 /user/hbase
> drwx--x--x   - hbaseuser         hbaseuser                  0 2017-11-20 08:52 /user/hbaseuser
> drwx--x--x   - hcat              hcat                       0 2017-11-20 07:55 /user/hcat
> drwx--x--x   - hdfs              hdfs                       0 2017-11-20 08:52 /user/hdfs
> drwx--x--x   - hdfs_ha_dfsadmin1 hdfs_ha_dfsadmin1          0 2017-11-20 08:52 /user/hdfs_ha_dfsadmin1
> drwx--x--x   - hdfs_ha_dfsadmin2 hdfs_ha_dfsadmin2          0 2017-11-20 08:52 /user/hdfs_ha_dfsadmin2
> drwx--x--x   - hdfsuser          hdfsuser                   0 2017-11-20 08:52 /user/hdfsuser
> drwx--x--x   - hive              hive                       0 2017-11-20 07:59 /user/hive
> drwx--x--x   - hiveuser          hiveuser                   0 2017-11-20 08:52 /user/hiveuser
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)