As shown in my code, I used RawLocalFileSystem() to return a
FileSystem reference. But when I create a HFile.Writer, in the path
parameter, I try to create a path in HDFS. There are two ways to
change the code into correct.
The first one is looks like:
FileSystem fs = new RawLocalFileSystem();
fs
On Tue, Mar 6, 2012 at 8:07 AM, yonghu wrote:
> Thanks for your reply. I have already solve the problem.
>
What did you do to fix it?
Thanks,
St.Ack
Thanks for your reply. I have already solve the problem.
Yong
On Tue, Mar 6, 2012 at 5:02 PM, Stack wrote:
> On Tue, Mar 6, 2012 at 6:48 AM, yonghu wrote:
>> Thanks for your reply. But I am using hbase 0.90.2. There is no
>> HFileWriterV2 class. Can you show me how to use HFileWriter
>> constru
On Tue, Mar 6, 2012 at 6:48 AM, yonghu wrote:
> Thanks for your reply. But I am using hbase 0.90.2. There is no
> HFileWriterV2 class. Can you show me how to use HFileWriter
> constructor?
>
Find the equivalent constructor in your code base.
You should upgrade to 0.90.5 at least if not 0.92.0.
Thanks for your reply. But I am using hbase 0.90.2. There is no
HFileWriterV2 class. Can you show me how to use HFileWriter
constructor?
Thanks
Yong
On Tue, Mar 6, 2012 at 3:19 PM, Konrad Tendera wrote:
> yonghu writes:
>
>>
>> Hello,
>>...
>
> try something like that:
>
> Configuration conf =
yonghu writes:
>
> Hello,
>...
try something like that:
Configuration conf = new Configuration();
FileSystem fs = FileSystem.get(conf);
HFile.Writer hwriter = new HFileWriterV2(conf, new CacheConfig(conf), fs, new
Path(fs.getWorkingDirectory() + "/foo"));
Hello,
I wrote a single program to directly write data content to HFile.
Hbase is installed as pseudo-mode.
here is my code:
public static void putData() throws Exception{
FileSystem fs = new RawLocalFileSystem();
fs.setConf(new Configuration());
//