乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      大數(shù)據(jù)實(shí)戰(zhàn)之環(huán)境搭建(八)

       集微筆記 2013-07-23

      由于本人機(jī)器有限,只有虛擬機(jī)的centOS和windows7操作系統(tǒng),所以這次我們就以這兩臺(tái)機(jī)器作為搭建Cassandra集群的節(jié)點(diǎn)。

      首先我們將Cassandra解壓包拷貝至linux系統(tǒng)的usr下

      然后修改/apahce-cassandra-1.2.5下面的conf目錄下的cassandra.yaml文件

      主要修改以下幾點(diǎn),我的windows的IP地址是192.168.1.3,虛擬機(jī)的IP是192.168.192.128。所以我們選取linux作為seeds節(jié)點(diǎn)。

      那么linux上的cassandra.yaml的配置如下:

      1.cluster默認(rèn)為Test-Cluster

      cluster_name: 'Test Cluster'

      2.seeds: "192.168.192.128"

      3.listen_address: 192.168.192.128

      4.broadcast_address: 192.168.192.128,這個(gè)可以配置,也可以留空

      5.rpc_address: 0.0.0.0(Thrift監(jiān)聽的客戶端的IP,這里意思是監(jiān)聽所有的客戶端IP)


      OK,再修改cassandra-topology.properties文件,修改如下

      1
      2
      3
      4
      5
      6
      7
      8
      9
      # Cassandra Node IP=Data Center:Rack
      192.168.192.128=DC1:RAC1
      192.168.1.3=DC2:RAC2
      # default for unknown nodes
      default=DC1:r1
      # Native IPv6 is supported, however you must escape the colon in the IPv6 Address
      # Also be sure to comment out JVM_OPTS="$JVM_OPTS -Djava.net.preferIPv4Stack=true"
      # in cassandra-env.sh
      fe80\:0\:0\:0\:202\:b3ff\:fe1e\:8329=DC1:RAC1

      到此linux上的配置就配置好了。我們啟動(dòng)Cassandra,結(jié)果報(bào)錯(cuò)


      真是惱火,搜了下google,發(fā)現(xiàn)這個(gè)解釋

      http://shellyli./blog/706455

      于是打開/etc/hosts文件

      加上bogon這個(gè)機(jī)器名,這個(gè)名字有點(diǎn)怪,像是商洛的一種鳥類,叫蚌崗。

      1
      2
      3
      4
      # Do not remove the following line, or various programs
      # that require network functionality will fail.
      127.0.0.1bogonlocalhost.localdomainlocalhost
      ::1localhost6.localdomain6localhost6

      不開玩笑了,我們看一下啟動(dòng)的cassandra-cli

      我們?cè)倏纯磜indows7上的配置cassandra.yaml的配置

      1.cluster_name: 'Test Cluster'

      2.seeds: "192.168.192.128"

      3.listen_address: 192.168.1.3

      4.broadcast_address: 192.168.1.3

      5.rpc_address: 0.0.0.0

      OK,再修改cassandra-topology.properties文件,修改如下

      1
      2
      3
      4
      5
      6
      7
      8
      9
      # Cassandra Node IP=Data Center:Rack
      192.168.192.128=DC1:RAC1
      192.168.1.3=DC2:RAC2
      # default for unknown nodes
      default=DC1:r1
      # Native IPv6 is supported, however you must escape the colon in the IPv6 Address
      # Also be sure to comment out JVM_OPTS="$JVM_OPTS -Djava.net.preferIPv4Stack=true"
      # in cassandra-env.sh
      fe80\:0\:0\:0\:202\:b3ff\:fe1e\:8329=DC1:RAC1

      OK,好了,我們先啟動(dòng)Cassandra,再啟動(dòng)cassandra-cli

      windows上和linux上的cassandra都已經(jīng)啟動(dòng)起來(lái)了。我們看一下環(huán)是否已經(jīng)成功

      看到了吧,有兩臺(tái)機(jī)器,都在機(jī)架1上,狀態(tài)是正常運(yùn)行狀態(tài)。

      至此,我們的cassandra集群就搭建好了,我們?cè)僭赾li下用describe cluster,命令查看集群信息

      也是沒有問題的,包含兩臺(tái)機(jī)器。OK,好了我們cassandra集群搭建到此結(jié)束

      本文出自 “微軟技術(shù)” 博客,請(qǐng)務(wù)必保留此出處http://leelei.blog.51cto.com/856755/1232393

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多