Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the Script #95

Open
arjunnandy opened this issue Jun 2, 2021 · 2 comments
Open

Issue with the Script #95

arjunnandy opened this issue Jun 2, 2021 · 2 comments

Comments

@arjunnandy
Copy link

The Isilon_create_directories script has an issue where it did not create the warehouse/tablespace/external. Mentioned below is a dump of the debug after executing the script

[2021-04-23 09:44:18,076] isilon_hadoop_tools.directories [INFO] mkdir '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external'
[2021-04-23 09:44:18,076] isilon_hadoop_tools.directories [INFO] chmod '775' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external'
[2021-04-23 09:44:18,076] isilon_hadoop_tools.directories [INFO] chown 'hdfs:supergroup' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] mkdir '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/managed'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] chmod '775' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/managed'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] chown 'hdfs:supergroup' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/managed'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] mkdir '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external/hive'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] chmod '1775' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external/hive'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] chown 'hive:hive' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external/hive'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] mkdir '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/managed/hive'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] chmod '1775' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/managed/hive'
[2021-04-23 09:44:18,077] isilon_hadoop_tools.directories [INFO] chown 'hive:hive' '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/managed/hive'
[2021-04-23 09:47:27,628] isilon_hadoop_tools.directories [INFO] mkdir '/ifs/data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external'
"message" : "A component of path 'data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external' does not exist."
[2021-04-23 09:47:28,496] root [ERROR] A component of path 'data/UAT_SAAP/NCW/HDFS/warehouse/tablespace/external' does not exist.

After running the script we went to the Isilon and verified that the tablespace directory was missing under warehouse.
ncwdh5icl11-1# cd /ifs/data/UAT_SAAP/NCW/HDFS/warehouse/
ncwdh5icl11-1# ls
ncwdh5icl11-1# pwd

The customer had to create the tablespace directory manually. I too have noticed the same behavior. Could you correct the script so that the error does not come up.

@shirleylxie
Copy link
Collaborator

shirleylxie commented Jun 2, 2021

This issue should be fixed with v4.1.3. Please have a try at the newest version.

Here is the log of v4.1.3.

[INFO] chown 'hdfs:supergroup' '/ifs/data/warehouse/tablespace'
[INFO] mkdir '/ifs/data/warehouse/tablespace/external'
[INFO] chmod '775' '/ifs/data/warehouse/tablespace/external'
[INFO] chown 'hdfs:supergroup' '/ifs/data/warehouse/tablespace/external'
[INFO] mkdir '/ifs/data/warehouse/tablespace/managed'
[INFO] chmod '775' '/ifs/data/warehouse/tablespace/managed'
[INFO] chown 'hdfs:supergroup' '/ifs/data/warehouse/tablespace/managed'
[INFO] mkdir '/ifs/data/warehouse/tablespace/external/hive'
[INFO] chmod '1775' '/ifs/data/warehouse/tablespace/external/hive'
[INFO] chown 'hive:hive' '/ifs/data/warehouse/tablespace/external/hive'
[INFO] mkdir '/ifs/data/warehouse/tablespace/managed/hive'
[INFO] chmod '1775' '/ifs/data/warehouse/tablespace/managed/hive'
[INFO] chown 'hive:hive' '/ifs/data/warehouse/tablespace/managed/hive'

@tucked
Copy link
Member

tucked commented Jun 2, 2021

Duplicate of #94

@tucked tucked marked this as a duplicate of #94 Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants