Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Twitter Analysis via FLUME - Why can't I view the log?

avatar
New Member

Hi

I'm trying to view the twitter agent log, however I can't as per below:

[root@sandbox ~]# hdfs dfs -chmod 777 /user/flume/tweets

chmod: changing permissions of '/user/flume/tweets': Permission denied. user=root is not the owner of inode=tweets

[root@sandbox ~]# /var/log/flume/flume-TwitterAgent.log

-bash: /var/log/flume/flume-TwitterAgent.log: Text file busy

I'm trying to use flume to retrieve tweets based on some given keywords, but not having any luck, please can someone advise?

Thanks

Raf

1 ACCEPTED SOLUTION

avatar
Guru

you can likely try using the hdfs user by su'ing to it first: su - hdfs

Then try the chmod again as the hdfs user instead of the root user.

View solution in original post

2 REPLIES 2

avatar
New Member

Could I delete the TwitterAgent.log file and try to re populate it? 😕

[root@sandbox ~]# ls /var/log/flume/

TwitterAgent.outflume-TwitterAgent.log

avatar
Guru

you can likely try using the hdfs user by su'ing to it first: su - hdfs

Then try the chmod again as the hdfs user instead of the root user.