Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

./build/env/bin/hue shell < script.py

# Promote Hue user to superuser
HUE_IGNORE_PASSWORD_SCRIPT_ERRORS=1 /opt/cloudera/parcels/CDH/lib/hue/build/env/bin/hue shell
# Example below to run at Hue shell
from django.contrib.auth.models import User
a = User.objects.get(username='gwen')
a.is_superuser = True
a.save()
Source by docs.cloudera.com #
 
PREVIOUS NEXT
Tagged: #shell
ADD COMMENT
Topic
Name
1+5 =