hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nan Zhu <zhunans...@gmail.com>
Subject manipulate DFSInputStream in FSDataInputStream?
Date Sun, 15 Dec 2013 00:53:03 GMT
Hi, all  

I’m modifying FSDataInputStream for some project,  

I would like to directly manipulate “in" object in my implementation  

as in the constructor a DFSInputStream is passed, so I convert “in” from InputStream to
DFSInputStream with  

import org.apache.hadoop.hdfs.DFSClient;

DFSClient.DFSInputStream dins = (DFSClient.DFSInputStream) in;

when I compile my code with ant

it says that  

[javac] /Users/zhunan/codes/SDNBigData/hadoop-1.2.1/src/core/org/apache/hadoop/fs/FSDataInputStream.java:20:
error: package org.apache.hadoop.hdfs does not exist  
    [javac] import org.apache.hadoop.hdfs.DFSClient;

What does this mean?

it means that core is compiled before hdfs, so I cannot do this?

Thank you very much!


Nan Zhu
School of Computer Science,
McGill University

View raw message