[ 
https://issues.apache.org/jira/browse/HDFS-12897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Harshakiran Reddy updated HDFS-12897:
-------------------------------------
    Description: 
Scenario:-
---------------
{{For EC policy}}
bin> ./hdfs ec -getPolicy -path /dir/
2017-12-06 12:51:35,324 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
RS-3-2-1024k
bin> ./hdfs ec -getPolicy -path /dir/.snapshot/
2017-12-06 12:19:52,204 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
{{FileNotFoundException: Path not found: /dir/.snapshot}}

bin> ./hdfs dfs -ls /dir/.snapshot/
2017-12-06 12:20:12,956 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
Found 2 items
drwxr-xr-x   - user group          0 2017-12-05 12:27 /dir/.snapshot/s1
drwxr-xr-x   - user group          0 2017-12-05 12:28 /dir/.snapshot/s2

{{For Storagepolicies}}
bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/.snapshot/
2017-12-06 12:24:10,729 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
{{The storage policy of /dir/.snapshot/ is unspecified}}
bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/
2017-12-06 12:50:17,010 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
The storage policy of /dir/:
BlockStoragePolicy{COLD:2, storageTypes=[ARCHIVE], creationFallbacks=[], 
replicationFallbacks=[]}

Which is the correct behavior ?

  was:
Scenario:-
---------------

bin> ./hdfs ec -getPolicy -path /dir/
2017-12-06 12:51:35,324 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
RS-3-2-1024k
bin> ./hdfs ec -getPolicy -path /dir/.snapshot/
2017-12-06 12:19:52,204 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
{{FileNotFoundException: Path not found: /dir/.snapshot}}
bin> ./hdfs dfs -ls /dir/.snapshot/
2017-12-06 12:20:12,956 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
Found 2 items
drwxr-xr-x   - user group          0 2017-12-05 12:27 /dir/.snapshot/s1
drwxr-xr-x   - user group          0 2017-12-05 12:28 /dir/.snapshot/s2
bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/.snapshot/
2017-12-06 12:24:10,729 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
{{The storage policy of /dir/.snapshot/ is unspecified}}
bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/
2017-12-06 12:50:17,010 WARN util.NativeCodeLoader: Unable to load 
native-hadoop library for your platform... using builtin-java classes where 
applicable
The storage policy of /dir/:
BlockStoragePolicy{COLD:2, storageTypes=[ARCHIVE], creationFallbacks=[], 
replicationFallbacks=[]}


> Path not found when we get the ec policy for a .snapshot dir
> ------------------------------------------------------------
>
>                 Key: HDFS-12897
>                 URL: https://issues.apache.org/jira/browse/HDFS-12897
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: erasure-coding, hdfs, snapshots
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Harshakiran Reddy
>
> Scenario:-
> ---------------
> {{For EC policy}}
> bin> ./hdfs ec -getPolicy -path /dir/
> 2017-12-06 12:51:35,324 WARN util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> RS-3-2-1024k
> bin> ./hdfs ec -getPolicy -path /dir/.snapshot/
> 2017-12-06 12:19:52,204 WARN util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> {{FileNotFoundException: Path not found: /dir/.snapshot}}
> bin> ./hdfs dfs -ls /dir/.snapshot/
> 2017-12-06 12:20:12,956 WARN util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> Found 2 items
> drwxr-xr-x   - user group          0 2017-12-05 12:27 /dir/.snapshot/s1
> drwxr-xr-x   - user group          0 2017-12-05 12:28 /dir/.snapshot/s2
> {{For Storagepolicies}}
> bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/.snapshot/
> 2017-12-06 12:24:10,729 WARN util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> {{The storage policy of /dir/.snapshot/ is unspecified}}
> bin> ./hdfs storagepolicies -getStoragePolicy -path /dir/
> 2017-12-06 12:50:17,010 WARN util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> The storage policy of /dir/:
> BlockStoragePolicy{COLD:2, storageTypes=[ARCHIVE], creationFallbacks=[], 
> replicationFallbacks=[]}
> Which is the correct behavior ?



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to