HUE的时区问题
轉(zhuǎn)自?http://molisa.iteye.com/blog/1953390 ? 我主要是根據(jù)這個(gè)說明調(diào)整的HUE的時(shí)區(qū)問題
?
在使用Cloudera Hue時(shí)遇到一問題:?
1. 使用Sqoop導(dǎo)入功能時(shí),由于配置錯(cuò)誤,使得“保存運(yùn)行”后Job并不能正常提交,且界面上沒有相關(guān)提示:?
- 使用Hue的Sqoop shell -》 start job --jid * 提交會出現(xiàn)一些錯(cuò)誤提示
- 然后再去/var/log/sqoop/里面查看log
2. 第二個(gè)問題是在使用Job Designer設(shè)計(jì)Sqoop任務(wù),提交時(shí),執(zhí)行過過程中提示缺少mysql 驅(qū)動,雖然驅(qū)動已經(jīng)被我加入到sqoop/lib下,后來才發(fā)現(xiàn),原來安裝的時(shí)候會將oozie workflow共享依賴的包入到hdfs中,所以我將驅(qū)動上傳到hdfs://user/oozie/share/lib/sqoop/下,再執(zhí)行Job就可以了?
3. hue oozie 執(zhí)行sqoop create-hive-table,不能成功在hive metastore中創(chuàng)建table,雖然在sqoop中加入--verbose參數(shù),在執(zhí)行過程中顯示了表示要創(chuàng)建table的DDL語句,但是在hive中show tables;并沒有真正創(chuàng)建成功。初步發(fā)現(xiàn)的原因,可能是在hue中sqoop沒有辦法調(diào)用起hive client,因?yàn)槿罩镜淖詈蟛]有打印hive所生成的log.?
4. hue oozie中有幾個(gè)關(guān)于時(shí)間的設(shè)置,都跟時(shí)區(qū)有關(guān):?
- Cloudera Manager中有關(guān)hue的時(shí)區(qū)的設(shè)置,默認(rèn)為American/LosAngeles,這個(gè)時(shí)區(qū)設(shè)置使得hue oozie dashboard中任務(wù)的時(shí)間顯示不能與中國標(biāo)準(zhǔn)時(shí)間一致,將其改為Asia/Chongqing,重啟hue服務(wù)即可。
- Hue Oozie Coordinator的頻率設(shè)置,開始和結(jié)束時(shí)間后的時(shí)區(qū)設(shè)置,是用來調(diào)整夏令時(shí)區(qū)的。由于某些時(shí)區(qū)實(shí)行夏令時(shí),使得開始和結(jié)束時(shí)間要進(jìn)行一定的調(diào)整。
- 上面的開始和結(jié)束時(shí)間使用的是UTC時(shí)區(qū),這個(gè)設(shè)置可以更改/etc/oozie/conf/oozie-default.xml中的oozie.process.timezone,默認(rèn)為UTC。然后,Hue oozie對這個(gè)設(shè)置的更改不起作用,所以在使用hue oozie時(shí),設(shè)置時(shí)間固定以UTC為基準(zhǔn),中國時(shí)間比其早8小時(shí),一般要減去8小時(shí)。
5. 當(dāng)使用MySQL作為集群中Hive的MetaStore和Cloudera Manager Monitor Service的Database的時(shí)候,各個(gè)節(jié)點(diǎn)要安裝mysql-connector。?
6. 在使用Cloudera Manager部署Hadoop時(shí),由于各節(jié)點(diǎn)時(shí)鐘不統(tǒng)一,會導(dǎo)致服務(wù)出現(xiàn)異常,使用NTP server/client可以解決這個(gè)問題。?
7. Cloudera Manager - Hbase browser couldn't connect to localhost:9090?
In Hue 2.5.0, there is a new feature called "HBase Browser", it is for user to quickly browsing huge tables and accessing Hbase content. You can also create new tables, add data, modify existing cells and filter data with the autocompleting search bar. If you click on "Hbase Browser" icon and get "API error: couldn't connect to localhost:9090", probably you don't have a Hbase thrift server running.?
In your CM, go to "All Services" -> "hbase1" -> "Instances", then under "Role Instances", click on "Add", choose a node to be "HBase Thrift Server", then start the thrift server. By default, hue connects to itself on port 9090, so make sure hue knows which node is the thrift server.?
To start a thrift server from commnad line, just type "hbase thrift start".
轉(zhuǎn)載于:https://www.cnblogs.com/hark0623/p/5039776.html
總結(jié)
- 上一篇: Quartz.NET和Log4Net三种
- 下一篇: 重载