您的位置:首页 > 产品设计 > UI/UE

Hue的全局配置文件hue.ini(图文详解)

2017-05-05 22:00 501 查看
不多说,直接上干货!  我的集群机器情况是bigdatamaster(192.168.80.10)、bigdataslave1(192.168.80.11)和bigdataslave2(192.168.80.12)  然后,安装目录是在/home/hadoop/app下。  官方建议在master机器上安装Hue,我这里也不例外。安装在bigdatamaster机器上。
 Hue版本:hue-3.9.0-cdh5.5.4

需要编译才能使用(联网)

 说给大家的话:大家电脑的配置好的话,一定要安装clouderamanager。毕竟是一家人的。
同时,我也亲身经历过,会有部分组件版本出现问题安装起来要个大半天时间去排除,做好心里准备。废话不多说,因为我目前读研,自己笔记本电脑最大8G,只能玩手动来练手。
纯粹是为了给身边没高配且条件有限的学生党看的!但我已经在实验室机器群里搭建好clouderamanager以及ambari都有。

大数据领域两大最主流集群管理工具Ambari和ClouderaManger

Cloudera安装搭建部署大数据集群(图文分五大步详解)(博主强烈推荐)

Ambari安装搭建部署大数据集群(图文分五大步详解)(博主强烈推荐)

 前期博客

CDH版本大数据集群下搭建Hue(hadoop-2.6.0-cdh5.5.4.gz+hue-3.9.0-cdh5.5.4.tar.gz)(博主推荐)

[hadoop@bigdatamasterhue]$pwd
/home/hadoop/app/hue
[hadoop@bigdatamasterhue]$ll
total88
-rw-rw-r--1hadoophadoop2782May521:03app.reg
drwxr-xr-x22hadoophadoop4096May521:03apps
drwxrwxr-x4hadoophadoop4096May521:03build
drwxr-xr-x3hadoophadoop4096Apr262016cloudera
drwxr-xr-x6hadoophadoop4096May521:03desktop
drwxr-xr-x6hadoophadoop4096Apr262016docs
drwxr-xr-x3hadoophadoop4096Apr262016ext
-rw-r--r--1hadoophadoop11358Apr262016LICENSE.txt
-rw-r--r--1hadoophadoop4742Apr262016Makefile
-rw-r--r--1hadoophadoop8505Apr262016Makefile.sdk
-rw-r--r--1hadoophadoop3531Apr262016Makefile.vars
-rw-r--r--1hadoophadoop2192Apr262016Makefile.vars.priv
drwxr-xr-x2hadoophadoop4096Apr262016maven
-rw-r--r--1hadoophadoop801Apr262016NOTICE.txt
-rw-r--r--1hadoophadoop1305Apr262016README
drwxr-xr-x5hadoophadoop4096Apr262016tools
-rw-r--r--1hadoophadoop932Apr262016VERSION
[hadoop@bigdatamasterhue]$
  首先,大家一应要看清我的3个节点的集群机器情况!(不看清楚,自己去后悔吧)进入$HUE_HOME/desktop/conf/hue.ini  关于这里,给大家一个很好的技巧

大数据搭建各个子项目时配置文件技巧(适合CentOS和Ubuntu系统)(博主推荐)

  以下是我的配置文件(注意不是默认的)(作为大家参考)([b]这个配置文件,是根据大家的机器变动而走的[/b])(动态的
#Hueconfigurationfile
#===================================
#
#Forcompletedocumentationaboutthecontentsofthisfile,run
#$<hue_root>/build/env/bin/hueconfig_help
#
#All.inifilesunderthecurrentdirectoryaretreatedequally.Their
#contentsaremergedtoformtheHueconfiguration,whichcan
#canbeviewedontheHueat
#http://<hue_host>:<port>/dump_config
###########################################################################
#GeneralconfigurationforcoreDesktopfeatures(authentication,etc)
###########################################################################

[desktop]

#Setthistoarandomstring,thelongerthebetter.
#Thisisusedforsecurehashinginthesessionstore.
secret_key=secret_key=jFE93j;2[290-eiw.KEiwN2s3['d;/.q[eIW^y#e=+Iei*@Mn<qW5o

#ExecutethisscripttoproducetheDjangosecretkey.Thiswillbeusedwhen
#`secret_key`isnotset.
##secret_key_script=

#Webserverlistensonthisaddressandport
http_host=192.168.80.10
http_port=8000

#Timezonename
time_zone=Asia/Shanghai

#EnableordisableDjangodebugmode.
django_debug_mode=false

#Enableordisabledatabasedebugmode.
##database_logging=false

#Enableordisablebacktraceforservererror
http_500_debug_mode=false

#Enableordisablememoryprofiling.
##memory_profiler=false

#Serveremailforinternalerrormessages
##django_server_email='hue@localhost.localdomain'

#Emailbackend
##django_email_backend=django.core.mail.backends.smtp.EmailBackend

#Webserverrunsasthisuser
server_user=hue
server_group=hue

#ThisshouldbetheHueadminandproxyuser
default_user=hue

#Thisshouldbethehadoopclusteradmin
efault_hdfs_superuser=hadoop

#Ifsettofalse,runcpserverwillnotactuallystartthewebserver.
#UsedifApacheisbeingusedasaWSGIcontainer.
##enable_server=yes

#NumberofthreadsusedbytheCherryPywebserver
##cherrypy_server_threads=40

#FilenameofSSLCertificate
##ssl_certificate=

#FilenameofSSLRSAPrivateKey
##ssl_private_key=

#FilenameofSSLCertificateChain
##ssl_certificate_chain=

#SSLcertificatepassword
##ssl_password=

#ExecutethisscripttoproducetheSSLpassword.Thiswillbeusedwhen`ssl_password`isnotset.
##ssl_password_script=

#Listofallowedanddisallowedciphersincipherlistformat.
#Seehttp://www.openssl.org/docs/apps/ciphers.htmlformoreinformationon
#cipherlistformat.Thislistisfrom
#https://wiki.mozilla.org/Security/Server_Side_TLSv3.7intermediate
#recommendation,whichshouldbecompatiblewithFirefox1,Chrome1,IE7,
#Opera5andSafari1.
##ssl_cipher_list=ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA

#PathtodefaultCertificateAuthoritycertificates.
##ssl_cacerts=/etc/hue/cacerts.pem

#ChoosewhetherHueshouldvalidatecertificatesreceivedfromtheserver.
##validate=true

#DefaultLDAP/PAM/..usernameandpasswordofthehueuserusedforauthenticationswithotherservices.
#e.g.LDAPpass-throughauthenticationforHiveServer2orImpala.Appscanoverridethemindividually.
##auth_username=hue
##auth_password=

#Defaultencodingforsitedata
##default_site_encoding=utf-8

#HelpimproveHuewithanonymoususageanalytics.
#UseGoogleAnalyticstoseehowmanytimesanapplicationorspecificsectionofanapplicationisused,nothingmore.
##collect_usage=true

#EnableX-Forwarded-Hostheaderiftheloadbalancerrequiresit.
##use_x_forwarded_host=false

#SupportforHTTPSterminationattheload-balancerlevelwithSECURE_PROXY_SSL_HEADER.
##secure_proxy_ssl_header=false

#Comma-separatedlistofDjangomiddlewareclassestouse.
#Seehttps://docs.djangoproject.com/en/1.4/ref/middleware/formoredetailsonmiddlewaresinDjango.
##middleware=desktop.auth.backend.LdapSynchronizationBackend

#Comma-separatedlistofregularexpressions,whichmatchtheredirectURL.
#Forexample,torestricttoyourlocaldomainandFQDN,thefollowingvaluecanbeused:
#^\/.*$,^http:\/\/www.mydomain.com\/.*$
##redirect_whitelist=^\/.*$

#Commaseparatedlistofappstonotloadatserverstartup.
#e.g.:pig,zookeeper
##app_blacklist=

#Thedirectorywheretostoretheauditinglogs.Auditingisdisableifthevalueisempty.
#e.g./var/log/hue/audit.log
##audit_event_log_dir=

#SizeinKB/MB/GBforauditlogtorollover.
##audit_log_max_file_size=100MB

#Ajsonfilecontainingalistoflogredactionrulesforcleaningsensitivedata
#fromlogfiles.Itisdefinedas:
#
#{
#"version":1,
#"rules":[
#{
#"description":"Thisisthefirstrule",
#"trigger":"triggerstring1",
#"search":"regex1",
#"replace":"replace1"
#},
#{
#"description":"Thisisthesecondrule",
#"trigger":"triggerstring2",
#"search":"regex2",
#"replace":"replace2"
#}
#]
#}
#
#Redactionworksbysearchingastringforthe[TRIGGER]string.Iffound,
#the[REGEX]isusedtoreplacesensitiveinformationwiththe
#[REDACTION_MASK].Ifspecifiedwith`log_redaction_string`,the
#`log_redaction_string`ruleswillbeexecutedafterthe
#`log_redaction_file`rules.
#
#Forexample,hereisafilethatwouldredactpasswordsandsocialsecuritynumbers:

#{
#"version":1,
#"rules":[
#{
#"description":"Redactpasswords",
#"trigger":"password",
#"search":"password=\".*\"",
#"replace":"password=\"???\""
#},
#{
#"description":"Redactsocialsecuritynumbers",
#"trigger":"",
#"search":"\d{3}-\d{2}-\d{4}",
#"replace":"XXX-XX-XXXX"
#}
#]
#}
##log_redaction_file=

#Commaseparatedlistofstringsrepresentingthehost/domainnamesthattheHueservercanserve.
#e.g.:localhost,domain1,*
##allowed_hosts=*

#Administrators
#----------------[[django_admins]]##[[[admin1]]]
##name=john
##email=john@doe.com#UIcustomizations
#-------------------[[custom]]#TopbannerHTMLcode
#e.g.<H2>TestLabA2HueServices</H2>
##banner_top_html=#Configurationoptionsforuserauthenticationintothewebapplication
#------------------------------------------------------------------------[[auth]]#Authenticationbackend.Commonsettingsare:
#-django.contrib.auth.backends.ModelBackend(entirelyDjangobackend)
#-desktop.auth.backend.AllowAllBackend(allowseveryone)
#-desktop.auth.backend.AllowFirstUserDjangoBackend
#(Default.ReliesonDjangoandusermanager,afterthefirstlogin)
#-desktop.auth.backend.LdapBackend
#-desktop.auth.backend.PamBackend
#-desktop.auth.backend.SpnegoDjangoBackend
#-desktop.auth.backend.RemoteUserDjangoBackend
#-libsaml.backend.SAML2Backend
#-libopenid.backend.OpenIDBackend
#-liboauth.backend.OAuthBackend
#(Newoauth,supportTwitter,Facebook,Google+andLinkedin
##backend=desktop.auth.backend.AllowFirstUserDjangoBackend#TheservicetousewhenqueryingPAM.
##pam_service=login#Whenusingthedesktop.auth.backend.RemoteUserDjangoBackend,thissets
#thenormalizednameoftheheaderthatcontainstheremoteuser.
#TheHTTPheaderintherequestisconvertedtoakeybyconverting
#allcharacterstouppercase,replacinganyhyphenswithunderscores
#andaddinganHTTP_prefixtothename.So,forexample,iftheheader
#iscalledRemote-UserthatwouldbeconfiguredasHTTP_REMOTE_USER
#
#DefaultstoHTTP_REMOTE_USER
##remote_user_header=HTTP_REMOTE_USER#Ignorethecaseofusernameswhensearchingforexistingusers.
#OnlysupportedinremoteUserDjangoBackend.
##ignore_username_case=true#Ignorethecaseofusernameswhensearchingforexistinguserstoauthenticatewith.
#OnlysupportedinremoteUserDjangoBackend.
##force_username_lowercase=true#Userswillexpireaftertheyhavenotloggedinfor'n'amountofseconds.
#Anegativenumbermeansthatuserswillneverexpire.
##expires_after=-1#Apply'expires_after'tosuperusers.
##expire_superusers=true#Forceuserstochangepasswordonfirstloginwithdesktop.auth.backend.AllowFirstUserDjangoBackend
##change_default_password=false#Numberofloginattemptsallowedbeforearecordiscreatedforfailedlogins
##login_failure_limit=3#Afternumberofallowedloginattemptsareexceeded,dowelockoutthisIPandoptionallyuseragent?
##login_lock_out_at_failure=false#Ifset,definesperiodofinactivityinsecondsafterwhichfailedloginswillbeforgotten
##login_cooloff_time=60#IfTrue,lockoutbasedonIPandbrowseruseragent
##login_lock_out_by_combination_browser_user_agent_and_ip=false#IfTrue,lockoutbasedonIPanduser
##login_lock_out_by_combination_user_and_ip=false#ConfigurationoptionsforconnectingtoLDAPandActiveDirectory
#-------------------------------------------------------------------[[ldap]]#Thesearchbaseforfindingusersandgroups
##base_dn="DC=mycompany,DC=com"#URLoftheLDAPserver
##ldap_url=ldap://auth.mycompany.com#APEM-formatfilecontainingcertificatesfortheCA'sthat
#HuewilltrustforauthenticationoverTLS.
#ThecertificatefortheCAthatsignedthe
#LDAPservercertificatemustbeincludedamongthesecertificates.
#Seemoreherehttp://www.openldap.org/doc/admin24/tls.html.##ldap_cert=
##use_start_tls=true#Distinguishednameoftheusertobindas--notnecessaryiftheLDAPserver
#supportsanonymoussearches
##bind_dn="CN=ServiceAccount,DC=mycompany,DC=com"#Passwordofthebinduser--notnecessaryiftheLDAPserversupports
#anonymoussearches
##bind_password=#Executethisscripttoproducethebinduserpassword.Thiswillbeused
#when`bind_password`isnotset.
##bind_password_script=#Patternforsearchingforusernames--Use<username>fortheparameter
#ForusewhenusingLdapBackendforHueauthentication
##ldap_username_pattern="uid=<username>,ou=People,dc=mycompany,dc=com"#CreateusersinHuewhentheytrytologinwiththeirLDAPcredentials
#ForusewhenusingLdapBackendforHueauthentication
##create_users_on_login=true#Synchronizeausersgroupswhentheylogin
##sync_groups_on_login=false#IgnorethecaseofusernameswhensearchingforexistingusersinHue.
##ignore_username_case=true#ForceusernamestolowercasewhencreatingnewusersfromLDAP.
##force_username_lowercase=true#Usesearchbindauthentication.
##search_bind_authentication=true#Choosewhichkindofsubgroupingtouse:nestedorsuboordinate(deprecated).
##subgroups=suboordinate#Definethenumberoflevelstosearchfornestedmembers.
##nested_members_search_depth=10#Whetherornottofollowreferrals
##follow_referrals=false#Enablepython-ldapdebugging.
##debug=false#SetsthedebuglevelwithintheunderlyingLDAPClib.
##debug_level=255#Possiblevaluesfortrace_levelare0fornologging,1foronlyloggingthemethodcallswitharguments,
#2forloggingthemethodcallswithargumentsandthecompleteresultsand9foralsologgingthetracebackofmethodcalls.
##trace_level=0[[[users]]]#Basefilterforsearchingforusers
##user_filter="objectclass=*"#TheusernameattributeintheLDAPschema
##user_name_attr=sAMAccountName[[[groups]]]#Basefilterforsearchingforgroups
##group_filter="objectclass=*"#ThegroupnameattributeintheLDAPschema
##group_name_attr=cn#Theattributeofthegroupobjectwhichidentifiesthemembersofthegroup
##group_member_attr=members[[[ldap_servers]]]##[[[[mycompany]]]]#Thesearchbaseforfindingusersandgroups
##base_dn="DC=mycompany,DC=com"#URLoftheLDAPserver
##ldap_url=ldap://auth.mycompany.com#APEM-formatfilecontainingcertificatesfortheCA'sthat
#HuewilltrustforauthenticationoverTLS.
#ThecertificatefortheCAthatsignedthe
#LDAPservercertificatemustbeincludedamongthesecertificates.
#Seemoreherehttp://www.openldap.org/doc/admin24/tls.html.##ldap_cert=
##use_start_tls=true#Distinguishednameoftheusertobindas--notnecessaryiftheLDAPserver
#supportsanonymoussearches
##bind_dn="CN=ServiceAccount,DC=mycompany,DC=com"#Passwordofthebinduser--notnecessaryiftheLDAPserversupports
#anonymoussearches
##bind_password=#Executethisscripttoproducethebinduserpassword.Thiswillbeused
#when`bind_password`isnotset.
##bind_password_script=#Patternforsearchingforusernames--Use<username>fortheparameter
#ForusewhenusingLdapBackendforHueauthentication
##ldap_username_pattern="uid=<username>,ou=People,dc=mycompany,dc=com"##Usesearchbindauthentication.
##search_bind_authentication=true#Whetherornottofollowreferrals
##follow_referrals=false#Enablepython-ldapdebugging.
##debug=false#SetsthedebuglevelwithintheunderlyingLDAPClib.
##debug_level=255#Possiblevaluesfortrace_levelare0fornologging,1foronlyloggingthemethodcallswitharguments,
#2forloggingthemethodcallswithargumentsandthecompleteresultsand9foralsologgingthetracebackofmethodcalls.
##trace_level=0##[[[[[users]]]]]#Basefilterforsearchingforusers
##user_filter="objectclass=Person"#TheusernameattributeintheLDAPschema
##user_name_attr=sAMAccountName##[[[[[groups]]]]]#Basefilterforsearchingforgroups
##group_filter="objectclass=groupOfNames"#TheusernameattributeintheLDAPschema
##group_name_attr=cn#ConfigurationoptionsforspecifyingtheDesktopDatabase.Formoreinfo,
#seehttp://docs.djangoproject.com/en/1.4/ref/settings/#database-engine#------------------------------------------------------------------------[[database]]
#Databaseengineistypicallyoneof:
#postgresql_psycopg2,mysql,sqlite3ororacle.
#
#Notethatforsqlite3,'name',belowisapathtothefilename.Forotherbackends,itisthedatabasename.
#NoteforOracle,options={"threaded":true}mustbesetinordertoavoidcrashes.
#NoteforOracle,youcanusetheOracleServiceNamebysetting"port=0"andthen"name=<host>:<port>/<service_name>".
#NoteforMariaDBusethe'mysql'engine.
##engine=sqlite3
##host=
##port=
##user=
##password=
##name=desktop/desktop.db
##options={}#ConfigurationoptionsforspecifyingtheDesktopsession.
#Formoreinfo,seehttps://docs.djangoproject.com/en/1.4/topics/http/sessions/#------------------------------------------------------------------------[[session]]
#Thecookiecontainingtheusers'sessionIDwillexpireafterthisamountoftimeinseconds.
#Defaultis2weeks.
##ttl=1209600#Thecookiecontainingtheusers'sessionIDwillbesecure.
#ShouldonlybeenabledwithHTTPS.
##secure=false#Thecookiecontainingtheusers'sessionIDwillusetheHTTPonlyflag.
##http_only=true#Usesession-lengthcookies.Logsouttheuserwhensheclosesthebrowserwindow.
##expire_at_browser_close=false#ConfigurationoptionsforconnectingtoanexternalSMTPserver
#------------------------------------------------------------------------[[smtp]]#TheSMTPserverinformationforemailnotificationdelivery
host=localhost
port=25
user=
password=#WhethertouseaTLS(secure)connectionwhentalkingtotheSMTPserver
tls=no#DefaultemailaddresstouseforvariousautomatednotificationfromHue
##default_from_email=hue@localhost#ConfigurationoptionsforKerberosintegrationforsecuredHadoopclusters
#------------------------------------------------------------------------[[kerberos]]#PathtoHue'sKerberoskeytabfile
##hue_keytab=
#KerberosprincipalnameforHue
##hue_principal=hue/hostname.foo.com
#Pathtokinit
##kinit_path=/path/to/kinit#ConfigurationoptionsforusingOAuthBackend(Core)login
#------------------------------------------------------------------------[[oauth]]
#TheConsumerkeyoftheapplication
##consumer_key=XXXXXXXXXXXXXXXXXXXXX#TheConsumersecretoftheapplication
##consumer_secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX#TheRequesttokenURL
##request_token_url=https://api.twitter.com/oauth/request_token#TheAccesstokenURL
##access_token_url=https://api.twitter.com/oauth/access_token#TheAuthorizeURL
##authenticate_url=https://api.twitter.com/oauth/authorize#ConfigurationoptionsforMetrics
#------------------------------------------------------------------------[[metrics]]#EnablethemetricsURL"/desktop/metrics"
##enable_web_metrics=True#Ifspecified,Huewillwritemetricstothisfile.
##location=/var/log/hue/metrics.json#Timeinmillisecondsonhowfrequentlytocollectmetrics
##collection_interval=30000###########################################################################
#SettingstoconfigureSAML
###########################################################################[libsaml]
#Xmlsec1binarypath.ThisprogramshouldbeexecutablebytheuserrunningHue.
##xmlsec_binary=/usr/local/bin/xmlsec1#EntityIDforHueactingasserviceprovider.
#Canalsoacceptapatternwhere'<base_url>'willbereplacedwithserverURLbase.
##entity_id="<base_url>/saml2/metadata/"#CreateusersfromSSOonlogin.
##create_users_on_login=true#RequiredattributestoaskforfromIdP.
#Thisrequiresacommaseparatedlist.
##required_attributes=uid#OptionalattributestoaskforfromIdP.
#Thisrequiresacommaseparatedlist.
##optional_attributes=#IdPmetadataintheformofafile.ThisisgenerallyanXMLfilecontainingmetadatathattheIdentityProvidergenerates.
##metadata_file=#Privatekeytoencryptmetadatawith.
##key_file=#Signedcertificatetosendalongwithencryptedmetadata.
##cert_file=#AmappingfromattributesintheresponsefromtheIdPtodjangouserattributes.
##user_attribute_mapping={'uid':'username'}#HaveHueinitiatedauthnrequestsbesignedandprovideacertificate.
##authn_requests_signed=false#HaveHueinitiatedlogoutrequestsbesignedandprovideacertificate.
##logout_requests_signed=false#Usernamecanbesourcedfrom'attributes'or'nameid'.
##username_source=attributes#Performsthelogoutornot.
##logout_enabled=true###########################################################################
#SettingstoconfigureOpenID
###########################################################################[libopenid]
#(Required)OpenIdSSOendpointurl.
##server_endpoint_url=https://www.google.com/accounts/o8/id#OpenId1.1identityurlprefixtobeusedinsteadofSSOendpointurl
#ThisisonlysupportedifyouareusinganOpenId1.1endpoint
##identity_url_prefix=https://app.onelogin.com/openid/your_company.com/#CreateusersfromOPENIDonlogin.
##create_users_on_login=true#Useemailforusername
##use_email_for_username=true###########################################################################
#SettingstoconfigureOAuth
###########################################################################[liboauth]
#NOTE:
#Towork,eachoftheactive(i.e.uncommented)servicemusthave
#applicationscreatedonthesocialnetwork.
#Thenthe"consumerkey"and"consumersecret"mustbeprovidedhere.
#
#Theaddresseswheretodosoare:
#Twitter:https://dev.twitter.com/apps#Google+:https://cloud.google.com/#Facebook:https://developers.facebook.com/apps#Linkedin:https://www.linkedin.com/secure/developer#
#Additionnaly,thefollowingmustbesetintheapplicationsettings:
#Twitter:CallbackURL(akaRedirectURL)mustbesettohttp://YOUR_HUE_IP_OR_DOMAIN_NAME/oauth/social_login/oauth_authenticated#Google+:CONSENTSCREENmusthaveemailaddress
#Facebook:SandboxModemustbeDISABLED
#Linkedin:"InOAuthUserAgreement",r_emailaddressisREQUIRED#TheConsumerkeyoftheapplication
##consumer_key_twitter=
##consumer_key_google=
##consumer_key_facebook=
##consumer_key_linkedin=#TheConsumersecretoftheapplication
##consumer_secret_twitter=
##consumer_secret_google=
##consumer_secret_facebook=
##consumer_secret_linkedin=#TheRequesttokenURL
##request_token_url_twitter=https://api.twitter.com/oauth/request_token
##request_token_url_google=https://accounts.google.com/o/oauth2/auth
##request_token_url_linkedin=https://www.linkedin.com/uas/oauth2/authorization
##request_token_url_facebook=https://graph.facebook.com/oauth/authorize#TheAccesstokenURL
##access_token_url_twitter=https://api.twitter.com/oauth/access_token
##access_token_url_google=https://accounts.google.com/o/oauth2/token
##access_token_url_facebook=https://graph.facebook.com/oauth/access_token
##access_token_url_linkedin=https://api.linkedin.com/uas/oauth2/accessToken#TheAuthenticateURL
##authenticate_url_twitter=https://api.twitter.com/oauth/authorize
##authenticate_url_google=https://www.googleapis.com/oauth2/v1/userinfo?access_token=
##authenticate_url_facebook=https://graph.facebook.com/me?access_token=
##authenticate_url_linkedin=https://api.linkedin.com/v1/people/~:(email-address)?format=json&oauth2_access_token=#UsernameMap.JsonHashformat.
#Replacesusernamepartsinordertosimplifyusernamesobtained
#Example:{"@sub1.domain.com":"_S1","@sub2.domain.com":"_S2"}
#converts'email@sub1.domain.com'to'email_S1'
##username_map={}#Whitelisteddomains(onlyappliestoGoogleOAuth).CSVformat.
##whitelisted_domains_google=###########################################################################
#SettingsfortheRDBMSapplication
###########################################################################[librdbms]
#TheRDBMSappcanhaveanynumberofdatabasesconfiguredinthedatabases
#section.Adatabaseisknownbyitssectionname
#(IEsqlite,mysql,psql,andoracleinthelistbelow).[[databases]]
#sqliteconfiguration.
##[[[sqlite]]]
#NametoshowintheUI.
##nice_name=SQLite#ForSQLite,namedefinesthepathtothedatabase.
##name=/tmp/sqlite.db#Databasebackendtouse.
##engine=sqlite#Databaseoptionstosendtotheserverwhenconnecting.
#https://docs.djangoproject.com/en/1.4/ref/databases/##options={}#mysql,oracle,orpostgresqlconfiguration.
##[[[mysql]]]
#NametoshowintheUI.
##nice_name="MySQLDB"#ForMySQLandPostgreSQL,nameisthenameofthedatabase.
#ForOracle,NameisinstanceoftheOracleserver.Forexpressedition
#thisis'xe'bydefault.
##name=mysqldb#Databasebackendtouse.Thiscanbe:
#1.mysql
#2.postgresql
#3.oracle
##engine=mysql#IPorhostnameofthedatabasetoconnectto.
##host=localhost#Portthedatabaseserverislisteningto.Defaultsare:
#1.MySQL:3306
#2.PostgreSQL:5432
#3.OracleExpressEdition:1521
##port=3306#Usernametoauthenticatewithwhenconnectingtothedatabase.
##user=example#Passwordmatchingtheusernametoauthenticatewithwhen
#connectingtothedatabase.
##password=example#Databaseoptionstosendtotheserverwhenconnecting.
#https://docs.djangoproject.com/en/1.4/ref/databases/##options={}###########################################################################
#SettingstoconfigureyourHadoopcluster.
###########################################################################[hadoop]#ConfigurationforHDFSNameNode
#------------------------------------------------------------------------
[[hdfs_clusters]]
#HAsupportbyusingHttpFs[[[default]]]
#Enterthefilesystemuri
fs_defaultfs=hdfs://bigdatamaster:9000#NameNodelogicalname.
##logical_name=#UseWebHdfs/HttpFsasthecommunicationmechanism.
#DomainshouldbetheNameNodeorHttpFshost.
#Defaultportis14000forHttpFs.
webhdfs_url=http://bigdatamaster:50070/webhdfs/v1#ChangethisifyourHDFSclusterisKerberos-secured
##security_enabled=false#Insecuremode(HTTPS),ifSSLcertificatesfromYARNRestAPIs
#havetobeverifiedagainstcertificateauthority
##ssl_cert_ca_verify=True#DirectoryoftheHadoopconfiguration
hadoop_conf_dir=/home/hadoop/app/hadoop/etc/hadoop/conf#ConfigurationforYARN(MR2)
#------------------------------------------------------------------------[[yarn_clusters]][[[default]]]
#EnterthehostonwhichyouarerunningtheResourceManager
resourcemanager_host=bigdatamaster#TheportwheretheResourceManagerIPClistenson
resourcemanager_port=8032#Whethertosubmitjobstothiscluster
submit_to=True#ResourceManagerlogicalname(requiredforHA)
##logical_name=#ChangethisifyourYARNclusterisKerberos-secured
##security_enabled=false#URLoftheResourceManagerAPI
resourcemanager_api_url=http://bigdatamaster:23188#URLoftheProxyServerAPI
proxy_api_url=http://bigdatamaster:8888#URLoftheHistoryServerAPI
history_server_api_url=http://bigdatamaster:19888#Insecuremode(HTTPS),ifSSLcertificatesfromYARNRestAPIs
#havetobeverifiedagainstcertificateauthority
##ssl_cert_ca_verify=True#HAsupportbyspecifyingmultipleclusters
#e.g.#[[[ha]]]
#ResourceManagerlogicalname(requiredforHA)
##logical_name=my-rm-name#ConfigurationforMapReduce(MR1)
#------------------------------------------------------------------------[[mapred_clusters]][[[default]]]
#EnterthehostonwhichyouarerunningtheHadoopJobTracker
##jobtracker_host=localhost#TheportwheretheJobTrackerIPClistenson
##jobtracker_port=8021#JobTrackerlogicalnameforHA
##logical_name=#Thriftplug-inportfortheJobTracker
##thrift_port=9290#Whethertosubmitjobstothiscluster
submit_to=False#ChangethisifyourMapReduceclusterisKerberos-secured
##security_enabled=false#HAsupportbyspecifyingmultipleclusters
#e.g.#[[[ha]]]
#EnterthelogicalnameoftheJobTrackers
##logical_name=my-jt-name###########################################################################
#SettingstoconfiguretheFilebrowserapp
###########################################################################[filebrowser]
#Locationonlocalfilesystemwheretheuploadedarchivesaretemporarystored.
##archive_upload_tempdir=/tmp#ShowDownloadButtonforHDFSfilebrowser.
##show_download_button=false#ShowUploadButtonforHDFSfilebrowser.
##show_upload_button=false###########################################################################
#Settingstoconfigureliboozie
###########################################################################[liboozie]
#TheURLwheretheOozieservicerunson.Thisisrequiredinorderfor
#userstosubmitjobs.Emptyvaluedisablestheconfigcheck.
##oozie_url=http://localhost:11000/oozie#RequiresFQDNinoozie_urlifenabled
##security_enabled=false#LocationonHDFSwheretheworkflows/coordinatoraredeployedwhensubmitted.
##remote_deployement_dir=/user/hue/oozie/deployments###########################################################################
#SettingstoconfiguretheOozieapp
###########################################################################[oozie]
#LocationonlocalFSwheretheexamplesarestored.
##local_data_dir=..../examples#LocationonlocalFSwherethedatafortheexamplesisstored.
##sample_data_dir=...thirdparty/sample_data#LocationonHDFSwheretheoozieexamplesandworkflowsarestored.
##remote_data_dir=/user/hue/oozie/workspaces#MaximumofOozieworkflowsorcoodinatorstoretrieveinoneAPIcall.
##oozie_jobs_count=50#UseCronformatfordefiningthefrequencyofaCoordinatorinsteadoftheoldfrequencynumber/unit.
##enable_cron_scheduling=true###########################################################################
#SettingstoconfigureBeeswaxwithHive
###########################################################################[beeswax]#HostwhereHiveServer2isrunning.
#IfKerberossecurityisenabled,usefully-qualifieddomainname(FQDN).
hive_server_host=bigdatamaster#PortwhereHiveServer2Thriftserverrunson.
hive_server_port=10000#Hiveconfigurationdirectory,wherehive-site.xmlislocated
hive_conf_dir=/home/hadoop/app/hive/conf#TimeoutinsecondsforthriftcallstoHiveservice
##server_conn_timeout=120#ChoosewhethertousetheoldGetLog()thriftcallfrombeforeHive0.14toretrievethelogs.
#Iffalse,usetheFetchResults()thriftcallfromHive1.0ormoreinstead.
##use_get_log_api=false#SetaLIMITclausewhenbrowsingapartitionedtable.
#ApositivevaluewillbesetastheLIMIT.If0ornegative,donotsetanylimit.
##browse_partitioned_table_limit=250#ThemaximumnumberofpartitionsthatwillbeincludedintheSELECT*LIMITsamplequeryforpartitionedtables.
##sample_table_max_partitions=10#Alimittothenumberofrowsthatcanbedownloadedfromaquery.
#Avalueof-1meanstherewillbenolimit.
#Amaximumof65,000isappliedtoXLSdownloads.
##download_row_limit=1000000#HuewilltrytoclosetheHivequerywhentheuserleavestheeditorpage.
#ThiswillfreeallthequeryresourcesinHiveServer2,butalsomakeitsresultsinaccessible.
##close_queries=false#ThriftversiontousewhencommunicatingwithHiveServer2.
#Newcolumnformatisfromversion7.
##thrift_version=7[[ssl]]
#PathtoCertificateAuthoritycertificates.
##cacerts=/etc/hue/cacerts.pem#ChoosewhetherHueshouldvalidatecertificatesreceivedfromtheserver.
##validate=true#Overridethedefaultdesktopusernameandpasswordofthehueuserusedforauthenticationswithotherservices.
#e.g.LDAP/PAMpass-throughauthentication.
##auth_username=hue
##auth_password=###########################################################################
#SettingstoconfigureImpala
###########################################################################[impala]
#HostoftheImpalaServer(oneoftheImpalad)
##server_host=localhost#PortoftheImpalaServer
##server_port=21050#Kerberosprincipal
##impala_principal=impala/hostname.foo.com#Turnon/offimpersonationmechanismwhentalkingtoImpala
##impersonation_enabled=False#NumberofinitialrowsofaresultsettoaskImpalatocacheinorder
#tosupportre-fetchingthemfordownloadingthem.
#Setto0fordisablingtheoptionandbackwardcompatibility.
##querycache_rows=50000#Timeoutinsecondsforthriftcalls
##server_conn_timeout=120#HuewilltrytoclosetheImpalaquerywhentheuserleavestheeditorpage.
#ThiswillfreeallthequeryresourcesinImpala,butalsomakeitsresultsinaccessible.
##close_queries=true#IfQUERY_TIMEOUT_S>0,thequerywillbetimedout(i.e.cancelled)ifImpaladoesnotdoanywork
#(computeorsendbackresults)forthatquerywithinQUERY_TIMEOUT_Sseconds.
##query_timeout_s=600[[ssl]]
#SSLcommunicationenabledforthisserver.
##enabled=false#PathtoCertificateAuthoritycertificates.
##cacerts=/etc/hue/cacerts.pem#ChoosewhetherHueshouldvalidatecertificatesreceivedfromtheserver.
##validate=true#Overridethedesktopdefaultusernameandpasswordofthehueuserusedforauthenticationswithotherservices.
#e.g.LDAP/PAMpass-throughauthentication.
##auth_username=hue
##auth_password=###########################################################################
#SettingstoconfigurePig
###########################################################################[pig]
#Locationofpiggybank.jaronlocalfilesystem.
##local_sample_dir=/usr/share/hue/apps/pig/examples#Locationpiggybank.jarwillbecopiedtoinHDFS.
##remote_data_dir=/user/hue/pig/examples###########################################################################
#SettingstoconfigureSqoop2
###########################################################################[sqoop]
#Forautocompletion,filloutthelibrdbmssection.#SqoopserverURL
##server_url=http://localhost:12000/sqoop#Pathtoconfigurationdirectory
##sqoop_conf_dir=/etc/sqoop2/conf###########################################################################
#SettingstoconfigureProxy
###########################################################################[proxy]
#Comma-separatedlistofregularexpressions,
#whichmatch'host:port'ofrequestedproxytarget.
##whitelist=(localhost|127\.0\.0\.1):(50030|50070|50060|50075)#Comma-separatedlistofregularexpressions,
#whichmatchanyprefixof'host:port/path'ofrequestedproxytarget.
#ThisdoesnotsupportmatchingGETparameters.
##blacklist=###########################################################################
#SettingstoconfigureHBaseBrowser
###########################################################################[hbase]
#Comma-separatedlistofHBaseThriftserversforclustersintheformatof'(name|host:port)'.
#Usefullhostnamewithsecurity.
#IfusingKerberosweassumeGSSAPISASL,notPLAIN.
##hbase_clusters=(Cluster|localhost:9090)#HBaseconfigurationdirectory,wherehbase-site.xmlislocated.
##hbase_conf_dir=/etc/hbase/conf#Hardlimitofrowsorcolumnsperrowfetchedbeforetruncating.
##truncate_limit=500#'buffered'isthedefaultoftheHBaseThriftServerandsupportssecurity.
#'framed'canbeusedtochunkupresponses,
#whichisusefulwhenusedinconjunctionwiththenonblockingserverinThrift.
##thrift_transport=buffered###########################################################################
#SettingstoconfigureSolrSearch
###########################################################################[search]#URLoftheSolrServer
##solr_url=http://localhost:8983/solr/#RequiresFQDNinsolr_urlifenabled
##security_enabled=false##Querysentwhennotermisentered
##empty_query=*:*#UselatestSolr5.2+features.
##latest=false###########################################################################
#SettingstoconfigureSolrIndexer
###########################################################################[indexer]#Locationofthesolrctlbinary.
##solrctl_path=/usr/bin/solrctl###########################################################################
#SettingstoconfigureJobDesigner
###########################################################################[jobsub]#LocationonlocalFSwhereexamplesandtemplatearestored.
##local_data_dir=..../data#LocationonlocalFSwheresampledataisstored
##sample_data_dir=...thirdparty/sample_data###########################################################################
#SettingstoconfigureJobBrowser.
###########################################################################[jobbrowser]
#Sharesubmittedjobsinformationwithallusers.Ifsettofalse,
#submittedjobsarevisibleonlytotheownerandadministrators.
##share_jobs=true#Whethertodisalbethejobkillbuttonforallusersinthejobbrowser
##disable_killing_jobs=false###########################################################################
#SettingstoconfiguretheZookeeperapplication.
###########################################################################[zookeeper][[clusters]][[[default]]]
#Zookeeperensemble.CommaseparatedlistofHost/Port.
#e.g.localhost:2181,localhost:2182,localhost:2183
host_ports=bigdatamaster:2181,bigdataslave1:2181,bigdataslave2:2181#TheURLoftheRESTcontribservice(requiredforznodebrowsing).
##rest_url=http://localhost:9998#NameofKerberosprincipalwhenusingsecurity.
##principal_name=zookeeper###########################################################################
#SettingstoconfiguretheSparkapplication.
###########################################################################[spark]
#HostaddressoftheLivyServer.
##livy_server_host=localhost#PortoftheLivyServer.
##livy_server_port=8998#Configurelivytostartwith'process','thread',or'yarn'workers.
##livy_server_session_kind=process#Iflivyshoulduseproxyuserswhensubmittingajob.
##livy_impersonation_enabled=true#Listofavailabletypesofsnippets
##languages='[{"name":"ScalaShell","type":"spark"},{"name":"PySparkShell","type":"pyspark"},{"name":"RShell","type":"r"},{"name":"Jar","type":"Jar"},{"name":"Python","type":"py"},{"name":"ImpalaSQL","type":"impala"},{"name":"HiveSQL","type":"hive"},{"name":"Text","type":"text"}]'###########################################################################
#SettingsfortheUserAdminapplication
###########################################################################[useradmin]
#Thenameofthedefaultusergroupthatuserswillbeamemberof
##default_user_group=default[[password_policy]]
#Setpasswordpolicytoallusers.Thedefaultpolicyrequirespasswordtobeatleast8characterslong,
#andcontainbothuppercaseandlowercaseletters,numbers,andspecialcharacters.##is_enabled=false
##pwd_regex="^(?=.*?[A-Z])(?=(.*[a-z]){1,})(?=(.*[\d]){1,})(?=(.*[\W_]){1,}).{8,}$"
##pwd_hint="Thepasswordmustbeatleast8characterslong,andmustcontainbothuppercaseandlowercaseletters,atleastonenumber,andatleastonespecialcharacter."
##pwd_error_message="Thepasswordmustbeatleast8characterslong,andmustcontainbothuppercaseandlowercaseletters,atleastonenumber,andatleastonespecialcharacter."###########################################################################
#SettingsfortheSentrylib
###########################################################################[libsentry]
#HostnameorIPofserver.
##hostname=localhost#Portthesentryserviceisrunningon.
##port=8038#Sentryconfigurationdirectory,wheresentry-site.xmlislocated.
##sentry_conf_dir=/etc/sentry/conf###########################################################################
#SettingstoconfiguretheZooKeeperLib
###########################################################################[libzookeeper]
#ZooKeeperensemble.CommaseparatedlistofHost/Port.
#e.g.localhost:2181,localhost:2182,localhost:2183
##ensemble=localhost:2181#NameofKerberosprincipalwhenusingsecurity.
##principal_name=zookeeper

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: