jpbirdy / kafka-hdfs-source-connector Goto Github PK
View Code? Open in Web Editor NEWkafka-hdfs-source-connector
kafka-hdfs-source-connector
while reading in CSV, it holds the same string format and will not allow it to be converted. This is the only free hdfs2/hdfs3 connector I have found so building out its functionality seems fesaible.
name=test-hdfs
connector.class=hdfs.HDFSSourceConnector
hadoop.conf.dir=/etc/hadoop/conf
hadoop.home=
hdfs.url=hdfs://nameservice1
hdfs.authentication.kerberos=true
connect.hdfs.principal=principal
connect.hdfs.keytab=keytab
hdfs.namenode.principal=principal
kerberos.ticket.renew.period.ms=3600000
file=
file.path=/user/directorypath
topic.prefix=test-hdfs-source
i am using the above config to connect hdfs and push data from directory to kafka
from the logs i could see the connection has been established with hadoop as below
[2018-08-01 08:47:56,013] INFO Created connector test-hdfs (org.apache.kafka.connect.cli.ConnectStandalone:99)
[2018-08-01 08:47:56,013] INFO Hadoop configuration directory /etc/hadoop/conf (hdfs.HDFSSourceTask:79)
[2018-08-01 08:47:56,272] INFO Hadoop namenode principal: hdfs/[email protected] (hdfs.HDFSSourceTask:299)
[2018-08-01 08:47:56,273] INFO Hadoop namenode principal: hdfs/[email protected] (hdfs.HDFSSourceTask:299)
[2018-08-01 08:47:56,609] INFO Login successful for user principal using keytab file principal.keytab (org.apache.hadoop.security.UserGroupInformation:966)
[2018-08-01 08:47:56,655] INFO Login successful for user principalusing keytab file principal.keytab (org.apache.hadoop.security.UserGroupInformation:966)
[2018-08-01 08:47:56,656] INFO Login as: principal (hdfs.HDFSSourceTask:304)
[2018-08-01 08:47:56,656] INFO Login as: principal (hdfs.HDFSSourceTask:304)
[2018-08-01 08:47:56,657] INFO Starting the Kerberos ticket renew thread with period 3600000ms. (hdfs.HDFSSourceTask:334)
[2018-08-01 08:47:56,657] INFO Starting the Kerberos ticket renew thread with period 3600000ms. (hdfs.HDFSSourceTask:334)
also i can see offset loading information as below
[2018-08-01 08:47:58,043] INFO loading offset /user/directory/e24f6ce5225ebcd6-31762fb100000004_2144770316_data.0. (hdfs.HDFSSourceTask:258)
[2018-08-01 08:47:58,073] INFO loading offset /user/directory/e24f6ce5225ebcd6-31762fb100000004_1165567777_data.0. (hdfs.HDFSSourceTask:258)
but i when i run console consumer for the topic i could hardly receive any message.
can you please help me solving this?
Thanks in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.