Comment 1 for bug 1541122

Revision history for this message
Michael McCune (mimccune) wrote :

i think the proper fix for this may be as simple as the following patch:

diff --git a/sahara/plugins/vanilla/hadoop2/oozie_helper.py b/sahara/plugins/vanilla/hadoop2/oozie_helper.py
index 734e99f..d51a2ea 100644
--- a/sahara/plugins/vanilla/hadoop2/oozie_helper.py
+++ b/sahara/plugins/vanilla/hadoop2/oozie_helper.py
@@ -13,6 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.

+import uuid
+

 def get_oozie_required_xml_configs(hadoop_conf_dir):
     """Following configs differ from default configs in oozie-default.xml."""
@@ -45,5 +47,5 @@ def get_oozie_mysql_configs():
         'oozie.service.JPAService.jdbc.url':
         'jdbc:mysql://localhost:3306/oozie',
         'oozie.service.JPAService.jdbc.username': 'oozie',
- 'oozie.service.JPAService.jdbc.password': 'oozie'
+ 'oozie.service.JPAService.jdbc.password': uuid.uuid4().hex
     }