Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行alluxio-mount.sh Mount挂载报错 #18619

Open
dabao1990 opened this issue Jun 6, 2024 · 3 comments
Open

执行alluxio-mount.sh Mount挂载报错 #18619

dabao1990 opened this issue Jun 6, 2024 · 3 comments
Labels
type-bug This issue is about a bug

Comments

@dabao1990
Copy link

comand:
1.wget https://downloads.alluxio.io/downloads/files/309/alluxio-309-bin.tar.gz
cd alluxio-309
yum install [email protected]
2.hostname
3.hostname localhost
alluxio_home = cls.spack_operator.get_bin_home(app_hash=cls.app_hash)
java_home = cls.spack_operator.get_bin_home(app_hash=cls.java_hash)
4.rm -f {alluxio_home}/conf/alluxio-site.properties
5.cp {alluxio_home}/conf/alluxio-site.properties.template {alluxio_home}/conf/alluxio-site.properties
6.echo "alluxio.master.hostname=localhost" >> {alluxio_home}/conf/alluxio-site.properties
7.rm -f {alluxio_home}/conf/alluxio-env.sh
8.cp {alluxio_home}/conf/alluxio-env.sh.template {alluxio_home}/conf/alluxio-env.sh
9.echo "export JAVA_HOME={java_home}" >> {alluxio_home}/conf/alluxio-env.sh
10.echo "export JAVA_HOME={java_home}" >> {alluxio_home}/conf/alluxio-site.properties
11.echo "export ALLUXIO_MASTER_ADDRESS=localhost" >> {alluxio_home}/conf/alluxio-site.properties
12.echo "export ALLUXIO_WORKER_MEMORY_SIZE=10240M" >> {alluxio_home}/conf/alluxio-site.properties
13.配免密等操作
if os.path.exists('/root/.ssh/id_rsa.pub'):
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
else:
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys
sed -i "/StrictHostKeyChecking=no/d" ~/.ssh/config
echo "StrictHostKeyChecking=no" >> ~/.ssh/config
执行挂载文件系统命令
14.alluxio-mount.sh Mount

[root@localhost spack-src]#./bin/alluxio-mount.sh SudoMount
/home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/bin/../libexec/alluxio-config.sh: line 29: /home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/libexec/version.sh: No such file or directory
/home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/bin/../libexec/alluxio-config.sh: line 29: /home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/libexec/version.sh: No such file or directory
Error: Could not find or load main class alluxio.cli.GetConf
Caused by: java.lang.ClassNotFoundException: alluxio.cli.GetConf
/home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/bin/../libexec/alluxio-config.sh: line 29: /home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/libexec/version.sh: No such file or directory
Error: Could not find or load main class alluxio.cli.GetConf
Caused by: java.lang.ClassNotFoundException: alluxio.cli.GetConf
/home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/bin/../libexec/alluxio-config.sh: line 29: /home/stage/root/spack-stage-alluxio-309-lucoy6qjdy2ilnj3lkw3ltzsh65udoly/spack-src/libexec/version.sh: No such file or directory
Error: Could not find or load main class alluxio.cli.GetConf
Caused by: java.lang.ClassNotFoundException: alluxio.cli.GetConf

看了下载源码包里确实没有version.sh这个文件

@dabao1990 dabao1990 added the type-bug This issue is about a bug label Jun 6, 2024
@YichuanSun
Copy link
Contributor

I think it is a bug, try to quick fix by creating a file called "version.sh" in ./libexec/ , the content is one line "VERSION=3.x-0.9.0-SNAPSHOT". Please do not input the quotation marks(").

@dabao1990
Copy link
Author

我认为这是一个错误,尝试通过创建一个名为“version.sh”的文件来快速修复,内容是一行“VERSION=3.x-0.9.0-SNAPSHOT”。请不要输入引号(“)。./libexec/

我尝试创建version.sh的文件,但执行之后报另一个问题
[root@localhost spack-src]#cat ./libexec/version.sh
VERSION=3.x-0.9.0-SNAPSHOT

[root@localhost spack-src]#./bin/alluxio-mount.sh Mount
Error: Could not find or load main class alluxio.cli.GetConf
Caused by: java.lang.ClassNotFoundException: alluxio.cli.GetConf

@gegnhigwej227
Copy link

In fact,I have encountered this problem,The issue was resolved by modifying the version in the source code. There is a high possibility that it is due to the CLASSPATH not found there jars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug This issue is about a bug
Projects
None yet
Development

No branches or pull requests

3 participants