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

Arpit Agarwal updated HDFS-5000:
--------------------------------

    Attachment: h5000.04.patch

Thanks Nicholas! Fixed it.

Here is the delta from the last patch:
{code}
 public class StorageLocation {
   public static final Log LOG = LogFactory.getLog(StorageLocation.class);
   final StorageType storageType;
-  File file;
+  final File file;

   // Regular expression that describes a storage uri with a storage type.
   // e.g. [Disk]/storages/storage1/
@@ -97,7 +97,9 @@ public static StorageLocation parse(String rawLocation) 
throws IOException {
         try {
           storageType = StorageType.valueOf(classString.toUpperCase());
         } catch (RuntimeException re) {
-          LOG.error("Unable to parse storage class: " + re.toString());
+          LOG.error("Unable to parse storage type: " + re.toString() +
+                    ". Using the default storage type for directory " +
+                    location);
{code}
                
> DataNode configuration should allow specifying storage type
> -----------------------------------------------------------
>
>                 Key: HDFS-5000
>                 URL: https://issues.apache.org/jira/browse/HDFS-5000
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode
>    Affects Versions: 3.0.0
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: h5000.02.patch, h5000.03.patch, h5000.04.patch, 
> HDFS-5000.001.patch
>
>
> The DataNode configuration should allow the administrator to optionally 
> specify the storage type for each storage directory.
> The DataNode should send the storage type with the block report.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to