2015-10-20 14 views
0

我想在下面的說明脫機模式下RHEL 6的機器上安裝MemSQL 4.1.7: http://docs.memsql.com/latest/setup/offline/memsql_platform.network.state.primary_state.primary_poll:無法查找本地代理

在步驟3,memsql -ops啓動命令,出現以下錯誤消息

memsql-ops-4.1.7 > memsql-ops/memsql-ops start 
    Starting MemSQL Ops... 
    Exception in thread Thread-7: 
    Traceback (most recent call last): 
    File "/usr/local/updated-openssl/lib/python3.4/threading.py", line 921, in _bootstrap_inner 
    File "/usr/local/updated-openssl/lib/python3.4/threading.py", line 869, in run 
    File "/memsql_platform/memsql_platform/agent/daemon/manage.py", line 198, in startup_watcher 
    File "/memsql_platform/memsql_platform/network/api_client.py", line 32, in call 
    File "/usr/local/updated-openssl/lib/python3.4/site-packages/simplejson/__init__.py", line 501, in loads 
    File "/usr/local/updated-openssl/lib/python3.4/site-packages/simplejson/decoder.py", line 370, in decode 
    File "/usr/local/updated-openssl/lib/python3.4/site-packages/simplejson/decoder.py", line 400, in raw_decode 
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 

在那之後我可以訪問MemSQL行動Web界面完成,並抱怨「MemSQL行動是無法連接到MemSQL下載服務器」,並提示我添加的二進制文件。因此,我跟着指令導向的步驟5和得到這個錯誤

memsql-ops > memsql-ops file-add -t memsql memsqlbin_amd64.tar.gz 
    Traceback (most recent call last): 
    File "/usr/local/updated-openssl/lib/python3.4/site-packages/cx_Freeze/initscripts/Console.py", line 27, in <module> 
    File "/memsql_platform/bin/memsql-ops", line 18, in <module> 
    File "/memsql_platform/memsql_platform/agent/cli/client.py", line 197, in parse 
    File "/memsql_platform/memsql_platform/agent/cli/command_file_add.py", line 27, in run 
    File "/memsql_platform/memsql_platform/agent/cli/file_add_mixin.py", line 58, in add_file 
    File "/memsql_platform/memsql_platform/network/api_client.py", line 32, in call 
    File "/usr/local/updated-openssl/lib/python3.4/site-packages/simplejson/__init__.py", line 501, in loads 
    File "/usr/local/updated-openssl/lib/python3.4/site-packages/simplejson/decoder.py", line 370, in decode 
    File "/usr/local/updated-openssl/lib/python3.4/site-packages/simplejson/decoder.py", line 400, in raw_decode 
simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 

============================== =======

這是memsql-ops.log

2015-10-19 17:05:37,667 [INFO] memsql_platform.agent.daemon.daemon: Binding to xx.xx.xx.xx:9000 
2015-10-19 17:05:38,458 [INFO] memsql_platform.network.engine: Ready. 
2015-10-19 17:05:38,462 [ERROR] memsql_platform.network.state.primary_state.primary_poll: Failed to lookup local agent 
2015-10-19 17:05:38,483 [INFO] memsql_platform.analytics.engine: Ready. 
2015-10-19 17:05:38,505 [INFO] memsql_platform.topology.engine: Ready. 
2015-10-19 17:05:38,509 [INFO] memsql_platform.spark.engine: Ready. 
2015-10-19 17:05:38,518 [INFO] memsql_platform.user_intent.intention_manager: Ready. 
2015-10-19 17:05:38,521 [INFO] memsql_platform.user_intent.intention_manager: Checking 1 active intentions 
2015-10-19 17:05:38,533 [INFO] memsql_platform.usage_statistics.engine: Ready. 
2015-10-19 17:05:38,537 [INFO] memsql_platform.benchmark.engine: Ready. 
2015-10-19 17:05:38,551 [INFO] memsql_platform.cluster.engine: Ready. 
2015-10-19 17:05:38,580 [INFO] memsql_platform.files.engine: Ready. 
2015-10-19 17:05:38,632 [INFO] memsql_platform.jobs.engine: Ready. 
2015-10-19 17:05:38,636 [INFO] memsql_platform.jobs.job_requeuer: Ready. 
2015-10-19 17:05:42,974 [INFO] memsql_platform.network.web_socket_handler: Received websocket connection from xx.xx.xx.xx 
2015-10-19 17:13:03,553 [INFO] memsql_platform.network.web_socket_handler: Closed websocket connection with xx.xx.xx.xx due to [1001] None 
2015-10-19 17:13:03,573 [INFO] memsql_platform.network.web_server: 304 GET/(xx.xx.xx.xx) 1.19ms 
2015-10-19 17:13:03,895 [INFO] memsql_platform.network.web_socket_handler: Received websocket connection from xx.xx.xx.xx 
2015-10-19 17:13:18,714 [INFO] memsql_platform.network.web_socket_handler: Closed websocket connection with xx.xx.xx.xx due to [1001] None 

任何人都可以確認是否memSQL 4.1.7工程與RHEL 6還是需要一些其他的依賴呢?

+0

的MemSQL行動命令行通過發送API請求http://127.0.0.1:9000:

你可以在命令行設置這個。當您訪問Web UI時,它使用相同的API,但它向http:// <您的服務器的主機名>:9000發送請求。因此,Web UI工作而不是命令行的事實表明,您的計算機上可能正在運行某些使用127.0.0.1的內容。 'curl -X POST -i 127.0.0.1:9000/api/v1/ping'的輸出是什麼? 'curl -X POST -i <你的服務器的IP地址>:9000/api/v1/ping'怎麼樣? –

+0

curl -X POST -i 127.0.0.1:9000/api/v1/ping給我一個「訪問被拒絕」頁面和 curl -X POST -i <您的服務器的IP地址>:9000/api/v1/ping給我「pong」 當我執行memsql-ops start時,是否必須指定--host? – trips

+0

您很可能正在運行其他使用端口9000的程序。您是否有任何Web服務器或此機器上正在運行的其他程序? –

回答

2

正如@Wayne Song在評論中指出的那樣。該MemSQL行動命令行通過發送API請求127.0.0.1:9000

所以,如果你的服務器是企業防火牆內部有一種可能性,即請求127.0.0.1可能無法通過。所以將127.0.0.1添加到no_proxy解決了這個問題。

export no_proxy=127.0.0.1