Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Apache Falcon doesn't think I'm logged in as root

SOLVED Go to solution
Highlighted

Apache Falcon doesn't think I'm logged in as root

New Contributor

I'm trying to create a cluster in Falcon, but I get an error saying that the current user "Falcon" is not the owner of the path. I am logged in as root, but it never asked me for a password. Here's the error:

https://imgur.com/t4XorQv

Any suggestions?

72858-error.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Apache Falcon doesn't think I'm logged in as root

Mentor

@Vaughn Shideler

I don't see why you are logged in as root , usually ambari-qa or Admin

I see you should have set it a directory higher, the offending directory permission is on SourceCluster

# hdfs dfs -ls -d /apps/falcon/SourceCluster/staging 
drwxrwxrwx - root hdfs 0 2018-05-10 03:41 /apps/falcon/SourceCluster/staging

So as hdfs user run the below snippet

$ hdfs dfs -chown -R falcon /apps/falcon

Then proceed as below

I have just tried out on my Single node cluster HDP-2.6.2.0 falcon 0.10.0

The Falcon UI will accept Admin, hive or Falcon and NOT prompt for the password so you can log out and log in as admin or falcon.

It's important the user has a home under /apps/* so in your case, you can use falcon form the above sequence. Below is the my output.

$ hdfs dfs -ls /apps
Found 4 items
drwxrwxrwx   - falcon   hdfs          0 2018-05-04 17:48 /apps/falcon
drwxr-xr-x   - hdfs     hdfs          0 2017-10-19 13:43 /apps/hbase
drwxr-xr-x   - hdfs     hdfs          0 2017-10-19 13:53 /apps/hive
drwxr-xr-x   - zeppelin hdfs          0 2017-10-19 19:25 /apps/zeppelin

See attached screenshot.

Please revert


vaughn.jpg
10 REPLIES 10

Re: Apache Falcon doesn't think I'm logged in as root

Cloudera Employee

@Vaughn Shideler,

Please check if permissions on the cluster staging directory are set to 777

Ref: https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-movement-and-integration/content/ch...

Re: Apache Falcon doesn't think I'm logged in as root

New Contributor

Hello @Samrat Kompella,

I tried this and still encounter the same problem:

[root@sandbox-hdp ~]# hdfs dfs -chmod -R 777 /apps/falcon/SourceCluster/staging

[root@sandbox-hdp ~]# hdfs dfs -ls -d /apps/falcon/SourceCluster/staging drwxrwxrwx - root hdfs 0 2018-05-10 03:41 /apps/falcon/SourceCluster/staging

Re: Apache Falcon doesn't think I'm logged in as root

Mentor

@Vaughn Shideler

As hdfs user could you try this

$ hdfs dfs -chown -R  falcon /apps/falcon/SourceCluster/staging

Check the permissions

$ hdfs dfs -ls /apps/falcon/SourceCluster

You should have falcon:hdfs

Then retry that should work

Re: Apache Falcon doesn't think I'm logged in as root

New Contributor

Thank you for your reply @Geoffrey Shelton Okot

Unfortunately, the same error still occurs when trying to create a cluster.

I also restarted the Falcon service, just to be safe.

On the summary page, it says the following:

Access Control List

Owner: root Group: users Permission: 0x755

I'm not sure if that helps. Also, the readout for -ls is as follows:

[hdfs@sandbox-hdp root]$ hdfs dfs -ls /apps/falcon/SourceCluster
Found 2 items
drwxrwxrwx - falcon hdfs 0 2018-05-10 03:41 /apps/falcon/SourceCluster/staging
drwxrwxrwx - root hdfs 0 2018-05-10 03:41 /apps/falcon/SourceCluster/working

Any further suggestions would be appreciated.

Re: Apache Falcon doesn't think I'm logged in as root

Cloudera Employee

@Vaughn Shideler

Please try keeping permissions on the working directory set to 755 (rwx/r-w/r-w)

Re: Apache Falcon doesn't think I'm logged in as root

New Contributor

Thank you @Samrat Kompella

The error I get now is the following:

https://imgur.com/5j9Der4

I'm not sure if it wants it back to 777 or not.

72880-error2.jpg

Re: Apache Falcon doesn't think I'm logged in as root

Cloudera Employee

Only Working dir should be 755 and staging should be kept 777

Re: Apache Falcon doesn't think I'm logged in as root

Mentor

@Vaughn Shideler

I don't see why you are logged in as root , usually ambari-qa or Admin

I see you should have set it a directory higher, the offending directory permission is on SourceCluster

# hdfs dfs -ls -d /apps/falcon/SourceCluster/staging 
drwxrwxrwx - root hdfs 0 2018-05-10 03:41 /apps/falcon/SourceCluster/staging

So as hdfs user run the below snippet

$ hdfs dfs -chown -R falcon /apps/falcon

Then proceed as below

I have just tried out on my Single node cluster HDP-2.6.2.0 falcon 0.10.0

The Falcon UI will accept Admin, hive or Falcon and NOT prompt for the password so you can log out and log in as admin or falcon.

It's important the user has a home under /apps/* so in your case, you can use falcon form the above sequence. Below is the my output.

$ hdfs dfs -ls /apps
Found 4 items
drwxrwxrwx   - falcon   hdfs          0 2018-05-04 17:48 /apps/falcon
drwxr-xr-x   - hdfs     hdfs          0 2017-10-19 13:43 /apps/hbase
drwxr-xr-x   - hdfs     hdfs          0 2017-10-19 13:53 /apps/hive
drwxr-xr-x   - zeppelin hdfs          0 2017-10-19 19:25 /apps/zeppelin

See attached screenshot.

Please revert


vaughn.jpg

Re: Apache Falcon doesn't think I'm logged in as root

New Contributor

That seems to have taken care of it, I can now create a cluster. The /staging directory needs to have permissions of 777 whereas I think the parent folder needs to be 755.

Thanks all for your assistance!