Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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

avatar
Explorer

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

avatar
Master 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

View solution in original post

10 REPLIES 10

avatar
Contributor

@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...

avatar
Explorer

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

avatar
Master 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

avatar
Explorer

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.

avatar
Contributor

@Vaughn Shideler

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

avatar
Explorer

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

avatar
Contributor

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

avatar
Master 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

avatar
Explorer

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!