无法设置多节点集群

时间:2019-01-07 07:16:36

标签: snappydata

我正在尝试设置snappy data的多节点群集

定位器配置:

a.com -dir=/snappydatafiles/server1 -heap-size=7096m -locators=b.com:8888,a.com:9999
b.com -dir=/snappydatafiles/server2 -heap-size=7096m -locators=b.com:8888,a.com:9999

服务器配置:

a.com -dir=/snappydatafiles/server1 -heap-size=7096m -locators=b.com:8888,a.com:9999
b.com -dir=/snappydatafiles/server2 -heap-size=7096m -locators=b.com:8888,a.com:9999

潜在客户配置:

a.com -heap-size=2096m -spark.ui.port=9090 -locators=b.com:8888,a.com:9999 -spark.executor.cores=8

使用/sbin/snappy-start-all.shbash /sbin/snappy-start-all.sh运行时出现此错误:

a.com: Warning: untrusted X11 forwarding setup failed: xauth key data not generated
a.com: export: Command not found.
a.com: perl: warning: Setting locale failed.
a.com: perl: warning: Please check that your locale settings:
a.com:  LANGUAGE = (unset),
a.com:  LC_ALL = (unset),
a.com:  LC_CTYPE = "UTF-8",
a.com:  LANG = "en_US.UTF-8"
a.com:     are supported and installed on your system.
a.com: perl: warning: Falling back to the standard locale ("C").
a.com: opendir(/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh/..): Not a directory at -e line 1
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 33: ./snappy-config.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 34: ./spark-config.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 37: /bin/load-spark-env.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 38: /bin/load-snappy-env.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 44: /bin/snappy: No such file or directory
b.com: Warning: untrusted X11 forwarding setup failed: xauth key data not generated
b.com: export: Command not found.
b.com: export: Command not found.
b.com: opendir(/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh/..): Not a directory at -e line 1
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 33: ./snappy-config.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 34: ./spark-config.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 37: /bin/load-spark-env.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 38: /bin/load-snappy-env.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-locator.sh: line 44: /bin/snappy: No such file or directory
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
a.com: Warning: untrusted X11 forwarding setup failed: xauth key data not generated
a.com: export: Command not found.
a.com: perl: warning: Setting locale failed.
a.com: perl: warning: Please check that your locale settings:
a.com:  LANGUAGE = (unset),
a.com:  LC_ALL = (unset),
a.com:  LC_CTYPE = "UTF-8",
a.com:  LANG = "en_US.UTF-8"
a.com:     are supported and installed on your system.
a.com: perl: warning: Falling back to the standard locale ("C").
a.com: opendir(/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh/..): Not a directory at -e line 1
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 33: ./snappy-config.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 34: ./spark-config.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 36: /bin/load-spark-env.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 37: /bin/load-snappy-env.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 43: /bin/snappy: No such file or directory
b.com: Warning: untrusted X11 forwarding setup failed: xauth key data not generated
b.com: export: Command not found.
b.com: export: Command not found.
b.com: perl: warning: Setting locale failed.
b.com: perl: warning: Please check that your locale settings:
b.com:  LANGUAGE = (unset),
b.com:  LC_ALL = (unset),
b.com:  LC_CTYPE = "UTF-8",
b.com:  LANG = "en_US.UTF-8"
b.com:     are supported and installed on your system.
b.com: perl: warning: Falling back to the standard locale ("C").
b.com: opendir(/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh/..): Not a directory at -e line 1
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 33: ./snappy-config.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 34: ./spark-config.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 36: /bin/load-spark-env.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 37: /bin/load-snappy-env.sh: No such file or directory
b.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-server.sh: line 43: /bin/snappy: No such file or directory

a.com: opendir(/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-lead.sh/..): Not a directory at -e line 1
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-lead.sh: line 33: ./snappy-config.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-lead.sh: line 34: ./spark-config.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-lead.sh: line 36: /bin/load-spark-env.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-lead.sh: line 37: /bin/load-snappy-env.sh: No such file or directory
a.com:/snappydata/snappydata-1.0.2.1-bin/sbin/snappy-lead.sh: line 43: /bin/snappy: No such file or directory

注意:,当我用localhost替换主机名并在设置此路径变量(setenv SPARK_LOCAL_IP 127.0.0.1)后运行时,它运行良好并且所有成员均已启动。

默认环境为csh

echo $SHELL
/bin/csh

Bash安装

ls -l /bin/bash
-rwxr-xr-x 1 root root 941880 Mar 22  2016 /bin/bash
ls -l /usr/bin/env
lrwxrwxrwx. 1 root root 13 Dec 13  2017 /usr/bin/env -> ../../bin/env
如果在普通终端上运行,

export命令不起作用 但是在root终端中,导出命令有效。

0 个答案:

没有答案