Github user svarnau commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/302#discussion_r52378054
--- Diff: install/installer/traf_cloudera_mods98 ---
@@ -158,6 +158,21 @@ if [ $? != 0 ]; then
fi
sudo su $HDFS_USER --command "$HADOOP_BIN_PATH/hadoop fs -chown -R $TRAF_USER:trafodion
/lobs"
+
+#Create Backup directory
+sudo su $HDFS_USER --command "$HADOOP_BIN_PATH/hadoop fs -mkdir /trafodion_backups" 2>
$HOME/traf_temp_output
+if [ $? != 0 ]; then
+ # ok if directory already exists
+ dir_exists=$(grep "File exists" $HOME/traf_temp_output | wc -l)
--- End diff --
I think this code could be simplified by using -p option to the -mkdir command. Then it
should not give error for directory exists.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
|