claudiofahey / isilon-hadoop-tools

Tools to deploy Hadoop on EMC Isilon
18 stars 21 forks source link

Undo creation of cdh users and directories #7

Closed tatefer closed 8 years ago

tatefer commented 8 years ago

Hi Claudio.

I ran both the "isilon_create_users.sh" and "isilon_create_directories.sh" scripts with the "cdh" option. But I'm having some problems installing the Cloudera distribution in my hadoop cluster.

For that reason, I have decided to install Hortonwoks instead of Cloudera, and I have executed the above scripts in Isilon with the "hwx" option, but, as expected, many errors appeared when creating the users (see below).

What should I do in order to be able to run the scripts succesfully? That is, which actions should I perform, as for instance, delete users, delete groups, to be able to run the scripts with the "hwx" option?

Do you have any "undo script" to perfom these actions?


Errors

IsilonSimulatorLab-1# bash /ifs/IsilonSimulatorLab/scripts/isilon-hadoop-tools/onefs/isilon_create_users.sh --dist hwx --startgid 501 --startuid 501 --zone System

Info: Hadoop distribution: hwx Info: groups will start at GID 501 Info: users will start at UID 501 Info: will put users in zone: System Info: HDFS root: /ifs/IsilonSimulatorLab/System/hadoop Failed to create persona 'GROUP:ranger' Failed to create persona 'GROUP:kms' Failed to create persona 'GROUP:atlas' Failed to create persona 'GROUP:ams' Failed to add member UID:501 to group GROUP:hadoop: User is already in local group Failed to add member UID:502 to group GROUP:hadoop: User is already in local group Failed to add member UID:503 to group GROUP:hadoop: User is already in local group Failed to create persona 'USER:storm' Failed to create persona 'USER:falcon' ERRORS FOUND:

Many thanks. Regards. Fernando.

ghost commented 8 years ago

There is not an undo flag to remove the users, groups, and directories created. To prepare the environment so it can be run again, first remove the groups in the file provider for this access zone associated with hadoop. Then do the same for the users. There is a case statement in the script for groups and users created for each distribution so you know which ones need removal. You can accomplish user and group removal either in the gui or using the isi auth command. Once they are removed you'll probably want to remove the directories that were created as well. Each distribution tends to have different user assignments, group assignments, and slightly different directory layout as well.

ghost commented 8 years ago

Correction, first remove the groups in the local provider for this access zone associated with hadoop.

tatefer commented 8 years ago

Ok, many thanks for the info. I'll try it!!

ghost commented 8 years ago

Fernando was that sufficient to help you resolve the matter?

tatefer commented 8 years ago

Oh, yes. I had some problems at the beginning but after two or three tries I finally made it. Many thanks. Fernando.

ghost commented 8 years ago

We've kicked around the idea of deletion functions several times. At the end of the day we work for a storage company and we don't like deleting your stuff. You can see where if somebody ran that, without knowing what it did, especially if that was the directories script, super bad things could happen.

ghost commented 8 years ago

closing issue