- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Twitter Analysis via FLUME - Why can't I view the log?
- Labels:
-
Apache Ambari
-
Apache Flume
Created 11-20-2016 08:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 11-21-2016 05:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Created 11-20-2016 08:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could I delete the TwitterAgent.log file and try to re populate it? 😕
[root@sandbox ~]# ls /var/log/flume/
TwitterAgent.outflume-TwitterAgent.log
Created 11-21-2016 05:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
