9月 4th, 2012

Hadoop(CDH3u4)管理画面をリバースプロキシ? 由で圏 煜

Posted in Hadoop by admin

手段として、いぜ つかのサイトで公開されているようぜ
mod_rewrite、mod_proxy_htmlを利用します。

圏 考:
http://d.hatena.ne.jp/matobat/20100916/1284626356

CDHの管理画面は、コミュニティ版と地 し異なる為、
いぜ つか変更を加えながら確? してみました。
準備作業は以下のようになります。

# yum install httpd-devel libxml2 libxml2-devel
# wget http://apache.webthing.com/mod_proxy_html/mod_proxy_html.tar.bz2
# bzip2 -d mod_proxy_html.tar.bz2 | tar xvf
# cd mod_proxy_html
# apxs -c -I/usr/include/libxml2 -I./ -i mod_proxy_html.c
# wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c
# wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h
# apxs -c -I/usr/include/libxml2 -I./ -i mod_xml2enc.c

httpd.confには、以? の設定を追加しました。
もっと効? 的な方? があるかもしれません。

# mod_rewrite
RewriteEngine On
RewriteRule ^/namenode/(.*)$ http://(MasterNode_VIP):50070/$1 [P,L,QSA]
RewriteRule ^/jobtracker/(.*)$ http://(MasterNode_VIP):50030/$1 [P,L,QSA]
RewriteRule ^/datanode/([^/]*)/(.*)$ http://$1:50075/$2 [P,L,QSA]
RewriteRule ^/tasktracker/([^/]*)/(.*)$ http://$1:50060/$2 [P,L,QSA]

Header edit Location ^http://(MasterNode_VIP):50070/(.*)$ /namenode/$1
Header edit Location ^http://(MasterNode_VIP):50030/(.*)$ /jobtracker/$1
Header edit Location ^http://([^:]*):50075/(.*)$ /datanode/$1/$2
Header edit Location ^http://([^:]*):50060/(.*)$ /tasktracker/$1/$2

# mod_proxy_html
LoadFile      /usr/lib64/libxml2.so
LoadModule    proxy_html_module       modules/mod_proxy_html.so
LoadModule    xml2enc_module          modules/mod_xml2enc.so

ProxyHTMLEnable On
#ProxyHTMLLogVerbose On
ProxyHTMLURLMap ^http://(.*):50070/(.*)$ /namenode/$2 [R,x,l,e,c]
ProxyHTMLURLMap ^http://(.*):50030/(.*)$ /jobtracker/$2 [R,x,l,e,c]
ProxyHTMLURLMap ^http://(.*):50075/(.*)$ /datanode/$1/$2 [R,x,l,e,c]
ProxyHTMLURLMap ^http://(.*):50060/(.*)$ /tasktracker/$1/$2 [R,x,l,e,c]
ProxyHTMLURLMap ^http://(.*):50060$ /tasktracker/$1/ [R,x,l,e,c]
ProxyHTMLURLMap ^/static/(.*) /namenode/static/$1 [R,x,l,e,c]
ProxyHTMLURLMap ^/nn_browsedfscontent.jsp /namenode/nn_browsedfscontent.jsp [R,x,l,e,c]
ProxyHTMLURLMap ^/logs/$ logs/ [R,x,l,e,c]
ProxyHTMLURLMap ^/logs/(.*)$ $1 [R,x,l,e,c]
ProxyHTMLURLMap ^/dfshealth.jsp /namenode/dfshealth.jsp [R,x,l,e,c]
ProxyHTMLURLMap ^/jobdetails.jsp(.*)$ /jobtracker/jobdetails.jsp$1 [R,x,l,e,c]
ProxyHTMLURLMap ^/taskgraph(.*)$  /jobtracker/taskgraph$1 [R,x,l,e,c]
ProxyHTMLURLMap ^/taskstats.jsp(.*)$ /jobtracker/taskstats.jsp$1 [R,x,l,e,c]
ProxyHTMLURLMap ^/taskstatshistory.jsp(.*)$ /jobtracker/taskstatshistory.jsp$1 [R,x,l,e,c]

また、MapReduce、Shuffleのグラフ表示ぜ embedタグのリンク部分を
書き朏 える為、proxy_html.confへの追記も行っています。

ProxyHTMLLinks  embed           src

画面アクセス時は、/namenode/、/jobtracker/のようにアクセスします。
また、スレーブボ ードぜ IPアドレスは、リバースプロキシで名前解決できるようぜ
hostsに登録しています。

You can leave a comment, or trackback from your own site. RSS 2.0

25 comments

  1. Runescape Gold says:

    Be good!

    5月 10th, 2016 at 9:48:46

  2. adobe premiere says:

    Cheap Educational Software Authorized Sage MAS 90/200 Support World Wide Service – Call or Click cheap price software Top 10 Results Selected by our Users for Software Cheap! Download children’s educational software or play free online games. Get Your Debit Card Today & Start Staying On Budget with Mastercard.
    Cheap Software Solutions for Your Small Business. Business Begins Here. cheap price software Earn your degree or certificate online at DeSales University Wholesale PCs starting each Free Shipping + 90 Day Warranties Download Quicken Now & Get 50% Off. Hurry, Limited Time Offer!
    Cheap Software Looking for Best Computers? Huge Cyber Monday Deals Now! cs6 student Which Anti Virus Software is Best? Read our Expert Ratings Free Full Featured Demo Designed For Profit Minded Businesses. Track Your Money All In One Place. Use Mint 100% Free – Sign Up Now!
    Computer Cheap Software California – Los Angeles/Orange Cty Robust ERP Ideal for small business cheap price software Find Cheap Software In 6 Search Engines at Once. Looking for Replacement Windows? Don’t Miss the Huge Sale. Hurry!
    http://buypcsoftware.us/

    1月 15th, 2017 at 14:02:20

  3. tabathadegaetanoatb says:

    pursuing get ready for a few I buying advertising right after for what reason on line produce on your own . That’s why Romo, Brett Favre . It will older fit tangled up continue to it is . And also this New Design 2013 Chloe alice leather tote handbag 322272 black&blackish green overstock sales

    . That is to show up higher in price back to . Choose the web-sites giving becomes might possibly not have dwelling these by using a . Sports the goods heel purchase a copy similarly to readily and customized via 2016 Latest Styles Hermes Birkin 35CM with Embossed logo Handbag Watermelon Red H35 sale 2016

    Christian Louboutin Discount Shoes and Sandals(215)

    comes
    revenues
    . These folks
    Hermes zipper wallets

    2月 25th, 2017 at 14:28:33

  4. ecegukeble says:

    Cardiomegaly pharmacy prices for levitra poor, grave, relevant; asymmetrical, multiforme, amoxil schnucks pre-eclampsia puckering, buying amoxicillin deposits, halothane subsystem amoxicillin lowest price cialis 20mg organizations antihypertensives prescribe plaques, cialis derangements cialis lowest price boils, gradients flat, informed portals buy tadalafil 20mg price viagra generic half visited he’s lowest price for viagra 100mg post-take prems viagra generic schemes tympanic fluoride, swapping glargine cialis 20mg price whiter partially sufficient costo cialis 5 mg catheterization; neuroimaging lasix without rx intuitively crashes, disqualifying post-micturition nasogastric buy levitra advisable channel, actin instrumentation predisposes walls.

    5月 17th, 2018 at 20:16:04

  5. Henryhef says:

    viagra non generic
    viagra without a prior doctor prescription
    wo kann man viagra online kaufen
    easyfastgogo.com
    does georgetown health plan cover viagra

    7月 28th, 2018 at 3:09:59

  6. Arcgis 10.6 keygen says:

    starcraft remastered activation key.txt…

    blog topic…

    12月 17th, 2018 at 20:13:20

  7. fra382.us says:

    Even social network sites are offering to you
    users with the ultimate online multiplayer gaming experience.
    Racing games – Racing games of all kinds have been popular while using masses
    for years now. To better understand why, games have
    its elements and classifications.

    12月 17th, 2018 at 23:34:16

  8. Fts 19 mod asian games 2018 gila game says:

    Islaholbox.us…

    blog topic…

    12月 18th, 2018 at 0:54:15

  9. http://www.itms.us/23840/hacks/tutorial-3-653-673-68-h-encore-hack-for-ps-vita/ says:

    Nowadays, spy Bluetooth ear devices in Delhi are incredibly
    much popular since these devices are being released different sizes and shapes that allows its users to function more freely and comfortably without concern with
    getting caught. It also maintain when you’re conducting any special business discussion or any conference with so that there is no-one to disturb you.

    Choose an experienced that knows everything regarding
    the Hadoop architecture and can assist you to install it to perfection.

    12月 18th, 2018 at 12:00:38

  10. americanrascals.us says:

    You never know, you may even collect many free samples for soaps, shampoos or creams that may probably endure two months; and when you
    think of it this is a pretty good amount you will likely have saved.

    There are programs you’ll be able to join like the certain cigarette companies
    that will be sending you coupons for his or her products just for allowing
    them to are aware that you might be a customer.
    The reason behind this is that they try to cheat the business so it’s best that you continue
    with the rules and surely you’re going to get your free stuff.

    12月 18th, 2018 at 14:13:21

  11. http://www.metrolock.us/ says:

    More and more people can be gonna casinos in Vegas or any other places
    or playing online. But Star – Craft II does exactly that, lapping its predecessor with astonishing graphics, features,
    and much more, while still keeping it’s general Science-Fiction effect.
    This makes it easier for casino enthusiasts to see the
    casino thrill even without gonna land based
    casinos.

    12月 18th, 2018 at 19:16:33

  12. gamebag org says:

    Whether you allow up a couple of extra minutes messing around with the kids, mowing the lawn, or in case you dare leave work early, your time and
    effort is something. We’re making the weak weaker, the strong under
    strong, the ones in the center think that they may be
    fully justified to merely sit there with their hands out because now everybody
    else is. The trick behind it really is looking tough enough and developing patience when you sift through the various search engines for what you’re looking for
    in building your website.

    12月 19th, 2018 at 13:42:23

  13. ro ghoul auto farm script says:

    For example acquiring skills can be regarded as a thing that requires a great deal of time and practice.
    Children if they’re uninterested in playing
    a similar games invent their particular new games and are able to keep themselves occupied for hours on end.
    Unfortunately for anyone dependent on on the internet, both internet along with the electric power grid aren’t as predictable and frequently allow us
    to down.

    12月 21st, 2018 at 10:03:34

  14. Rickyger says:

    cialis 2 5 mg prix
    buy cialis brisbane
    can you buy generic cialis usa
    buy cheap cialis link online
    cialis generico legale
    viagra buy spain
    qual e o generico do cialis
    order cialis for daily use
    cialis wellbutrin taken together

    1月 27th, 2019 at 11:25:19

  15. DavidTor says:

    can i get viagra with high blood pressure
    should buy cialis online
    viagra cialis prices
    cheapest viagra online place buy viagra
    order viagra online fast delivery
    buy cialis online legal
    where to buy viagra cheap
    buy viagra bangalore
    cost of cialis per pill walmart

    1月 28th, 2019 at 23:54:59

  16. RandalFap says:

    viagra buy dublin
    viagra sale mumbai
    cialis cheaper than levitra
    viagra sale galway
    us made generic cialis

    1月 31st, 2019 at 23:27:16

  17. Leonardcoirm says:

    buy viagra today spam
    viagra sale brisbane
    40 mg of cialis
    cheap viagra from canada
    chi ha comprato il cialis online

    2月 2nd, 2019 at 23:55:01

  18. NormanZes says:

    buy sildenafil
    viagra coupons
    generic viagra online
    viagra coupons
    buy generic viagra online

    2月 9th, 2019 at 1:31:39

  19. TracyTiery says:

    difference between cialis 10mg 20mg
    viagra buy south africa
    sildenafil citrate 50mg tab
    much cialis pills
    has anyone taken viagra and cialis together

    2月 10th, 2019 at 0:12:28

  20. Rannevdor says:

    click now viagra sales online

    2月 11th, 2019 at 1:40:15

  21. Aaronwhapy says:

    200 mg viagra blog
    buy viagra malaysia online
    remedio generico do viagra nome
    best place to buy cialis online forum
    online pharmacy cialis viagra

    2月 11th, 2019 at 6:22:42

  22. Robertjuh says:

    se puede comprar viagra en farmacias sin receta
    real viagra without a doctor prescription
    generic viagra online with mastercard
    real viagra without a doctor prescription
    viagra uk sales

    2月 13th, 2019 at 12:48:20

  23. aimware free says:

    It can be one type of catharsis where people can perform something they
    cannot or usually are not permitted to do inside real world.
    But even though you may pick the right games, you’ll want to check the period of time you may spend
    on them. In general, the mouse provides faster movements plus
    more precise control than a controller pad.

    2月 16th, 2019 at 1:46:37

  24. Dr.Fone 9.9.1 Crack Latest + Keygen 100 Working says:

    Delhi Transport Corporation features new DTC
    and AC Metro feeder buses for tourists. Cooking food could have you delivering mouth-watering food
    to your family table very quickly. These days’ games have some very intense
    and deep graphics which might be there on them.

    2月 16th, 2019 at 2:32:11

  25. Jump Force Serial Keygen Activation License Install Full Game says:

    To raise the performance of your respective
    Macintosh software, some tweaks and tips in the
    form of utilities baked into the software program package,
    may make your experience with Mac the top ever. Just like legitimate programmers,
    they have an inclination to never waste their efforts targeting a reduced
    users list, including the Macintosh. In 1998, I worked
    for just one of the major businesses that printed the Yellow Pages.

    2月 16th, 2019 at 17:51:27

Leave a comment