Created 02-19-2016 10:50 AM
this is the first time that i use nifi ,so how i can stream data from web site to hdfs using nifi ; there is template for this ?? if not how i can do it ,which processor i can used it ? thx
Created 02-19-2016 01:57 PM
See this
https://community.hortonworks.com/repos/6119/apache-nifi-template-rpo.html or
https://github.com/hortonworks-gallery/nifi-templates
Now , let's take twitter example
https://community.hortonworks.com/repos/8587/storm-demo-to-monitor-tweets.html
https://community.hortonworks.com/repos/10062/single-view-demo.html
Created 02-19-2016 11:01 AM
@nejm hadj here are all templates https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates
Take a look at GetHTTP processor for your task https://nifi.apache.org/docs.html
Created 02-19-2016 01:57 PM
See this
https://community.hortonworks.com/repos/6119/apache-nifi-template-rpo.html or
https://github.com/hortonworks-gallery/nifi-templates
Now , let's take twitter example
https://community.hortonworks.com/repos/8587/storm-demo-to-monitor-tweets.html
https://community.hortonworks.com/repos/10062/single-view-demo.html
Created 02-23-2016 09:52 AM
thx for your help , now i use template twitter to stream data but i get this error
Permission denied: user=root, access=WRITE, inode="/nifi/tweets/.668434832146110.json":hdfs:hdfs:drwxr-xr-x how i can change permission to make user root can write to hdfs ,also whene i try to manage my files or change permission (i connect as admin in ambari ) i get the same error for the user admin
Created 02-23-2016 10:05 AM
@nejm hadj That's good progress!!!
Now, Please do this
login as user root in your machine
su - hdfs
hdfs dfs -chown -R root:hdfs /nifi
exit
This should fix permission issue.
Created 02-23-2016 10:06 AM
@nejm hadj For admin user
su - hdfs
hadoop fs -mkdir /user/admin
hadoop fs -chown admin:hadoop /user/admin
Created 02-23-2016 11:40 AM
Thx it is work