[jira] [Commented] (HDFS-13512) WebHdfs getFileStatus doesn't return ecPolicy

2018-05-16 Thread Nitiraj Singh Rathore (JIRA)

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

Nitiraj Singh Rathore commented on HDFS-13512:
--

[~ajayydv] : will this be available in 3.1.1 release. can you please update the 
fix version and commit the patch?

> WebHdfs getFileStatus doesn't return ecPolicy
> -
>
> Key: HDFS-13512
> URL: https://issues.apache.org/jira/browse/HDFS-13512
> Project: Hadoop HDFS
>  Issue Type: Improvement
>Reporter: Ajay Kumar
>Assignee: Ajay Kumar
>Priority: Major
> Attachments: HDFS-13512.00.patch, HDFS-13512.01.patch, 
> HDFS-13512.02.patch, HDFS-13512.03.patch, HDFS-13512.04.patch, 
> HDFS-13512.05.patch
>
>
> Currently LISTSTATUS call to WebHdfs returns a json. These jsonArray elements 
> do have the ecPolicy name.
> But when WebHdfsFileSystem converts it back into a FileStatus object, the 
> ecPolicy is not added. This is because the json contains only the ecPolicy 
> name and this name is not sufficient to decode it back to ErasureCodingPolicy 
> object.
> While converting json back to HdfsFileStatus we should set ecPolicyName 
> whenever it is set for give file/dir.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Created] (HDFS-12108) Hdfs tail -f command keeps printing the last line in loop when more data is not available

2017-07-10 Thread Nitiraj Singh Rathore (JIRA)
Nitiraj Singh Rathore created HDFS-12108:


 Summary: Hdfs tail -f command keeps printing the last line in loop 
when more data is not available
 Key: HDFS-12108
 URL: https://issues.apache.org/jira/browse/HDFS-12108
 Project: Hadoop HDFS
  Issue Type: Bug
  Components: hdfs-client
Affects Versions: 2.7.3
Reporter: Nitiraj Singh Rathore


I tried to do the simple tail -f expecting that new data will keep appearing on 
console, but I found out that in the absence of new data the last line of the 
file keeps printing again and again. See the below output. For clarification I 
have also pasted the output of cat command for the same file.

bq. [hdfs@c6401 lib]$ hdfs dfs -tail -f 
/ats/active/application_1499594381431_0001/appattempt_1499594381431_0001_01/domainlog-appattempt_1499594381431_0001_01
bq. 
{"id":"Tez_ATS_application_1499594381431_0001","readers":"*","writers":"hive"}
bq. 
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
bq. 
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
bq. 
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
bq. 
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}
bq. 
bq. [hdfs@c6401 lib]$ hdfs dfs -cat  
/ats/active/application_1499594381431_0001/appattempt_1499594381431_0001_01/domainlog-appattempt_1499594381431_0001_01
bq. 
{"id":"Tez_ATS_application_1499594381431_0001","readers":"*","writers":"hive"}
bq. 
{"id":"Tez_ATS_application_1499594381431_0001_1","readers":"*","writers":"hive"}[hdfs@c6401
 lib]$



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

-
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org