[ 
http://issues.apache.org/jira/browse/HADOOP-414?page=comments#action_12432686 ] 
            
Hairong Kuang commented on HADOOP-414:
--------------------------------------

I was not talking about user data. Instead I was concerned about replacing data 
internal uses. The following is an example that illustreates my point.

When we load the edit log, if the operation name is OP_DATANODE_ADD, we need to 
read a DataNodeDescriptor, which is a Writable, by calling 
DataNodeDescriptor.readField. The class DataNodeDescriptor has a field "name" 
with type String. Although FSEditLog has version info, but DataNodeDescriptor 
does not. So the readFiied method does not know how to read the data node name, 
whether to use UTF8.readString or Text.readString. So either we should support 
Writable versioning or we need to pass version number to readField.

> replace class UTF8 with class Text
> ----------------------------------
>
>                 Key: HADOOP-414
>                 URL: http://issues.apache.org/jira/browse/HADOOP-414
>             Project: Hadoop
>          Issue Type: Improvement
>    Affects Versions: 0.5.0
>            Reporter: Hairong Kuang
>         Assigned To: Hairong Kuang
>             Fix For: 0.6.0
>
>         Attachments: utf2text.patch
>
>
> Since class UTF8 is deprecated, all references of UTF8 in hadoop should be 
> replaced with class Text if the change does not break the system. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to