How to transfer data from one system to another system's HDFS (connected through LAN) using Flume? -


i have computer in lan connection . need transfer data system system's hdfs location using flume.

i have tried using ip address of sink system, didn't work. please help..

regards,

athiram

this can achieved using avro mechanism.

the flume has installed in both machines. config file following codes has made run in source system , logs generated.

a1.sources = tail-file a1.channels = c1 a1.sinks=avro-sink  a1.sources.tail-file.channels = c1 a1.sinks.avro-sink.channel = c1 a1.channels.c1.type = memory a1.channels.c1.capacity = 1000  a1.sources.tail-file.type = spooldir a1.sources.tail-file.spooldir =<location of spool directory> a1.sources.tail-file.channels = c1 a1.sinks.avro-sink.type = avro a1.sinks.avro-sink.hostname = <ip address of destination system data has    written>    a1.sinks.avro-sink.port = 11111 

a config file following codes has made run in destination system , logs generated.

a2.sources = avro-collection-source a2.sinks = hdfs-sink a2.channels = mem-channel  a2.sources.avro-collection-source.channels = mem-channel a2.sinks.hdfs-sink.channel = mem-channel a2.channels.mem-channel.type = memory a2.channels.mem-channel.capacity = 1000  a2.sources.avro-collection-source.type = avro a2.sources.avro-collection-source.bind = localhost a2.sources.avro-collection-source.port = 44444  a2.sinks.hdfs-sink.type = hdfs a2.sinks.hdfs-sink.hdfs.writeformat = text a2.sinks.hdfs-sink.hdfs.fileprefix =  testing a2.sinks.hdfs-sink.hdfs.path = hdfs://localhost:54310/user/hduser/ 

now, data log file in source system written hdfs system in destination system.

regards,

athiram


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -