java Alluxio_Alluxio的安装

java Alluxio_Alluxio的安装一 文件下载和解压 2 解压命令如下 tarxvfzallux 1 2 0 bin tar gz cdalluxio 1 2 0 二 配置文件更改目前只是基本配置更改 1 data spark software alluxio 1 2 0 conf 下的 alluxio env sh template 复制一份为 alluxio env sh 更改如下 usr bin env

一、文件下载和解压

2) 解压命令如下:

$tar xvfz alluxio-1.2.0-bin.tar.gz

$cdalluxio-1.2.0

二、 配置文件更改

目前只是基本配置更改:

1) /data/spark/software/alluxio-1.2.0/conf下的  alluxio-env.sh.template 复制一份为: alluxio-env.sh

更改如下:

#!/usr/bin/env bash

#

# The Alluxio Open Foundation licenses this work under the Apache License, version 2.0

# (the “License”). You may not use this work except in compliance with the License, which is

# available at www.apache.org/licenses/LICENSE-2.0

#

# This software is distributed on an “AS IS” basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,

# either express or implied, as more fully set forth in the License.

#

# See the NOTICE file distributed with this work for information regarding copyright ownership.

#

# Copy it as alluxio-env.sh and edit that to configure Alluxio for your

# site. This file is sourced to launch Alluxio servers or use Alluxio shell

# commands.

#

# This file provides one way to configure Alluxio options by setting the

# following listed environment variables. Note that, setting this file will not

# affect jobs (e.g., Spark job or MapReduce job) that are using Alluxio client

# as a library. Alternatively, you can edit alluxio-site.properties file, where

# you can set all the configuration options supported by Alluxio

# (http://alluxio.org/documentation/)which is respected by both external jobs

# and Alluxio servers (or shell).

# The directory where Alluxio deployment is installed. (Default: the parent directory of libexec/).

exportALLUXIO_HOME=/data/spark/software/alluxio-1.2.0

# The directory where log files are stored. (Default: ${ALLUXIO_HOME}/logs).

# ALLUXIO_LOGS_DIR

# Hostname of the master.

# ALLUXIO_MASTER_HOSTNAME

exportALLUXIO_MASTER_HOSTNAME=spark29

# This is now deprecated. Support will be removed in v2.0

# ALLUXIO_MASTER_ADDRESS

#export ALLUXIO_MASTER_ADDRESS=spark29

# The directory where a worker stores in-memory data. (Default: /mnt/ramdisk).

# E.g. On linux,  /mnt/ramdisk for ramdisk, /dev/shm for tmpFS; on MacOS, /Volumes/ramdisk for ramdisk

# ALLUXIO_RAM_FOLDER

exportALLUXIO_RAM_FOLDER=/data/spark/software/alluxio-1.2.0/ramdisk

# Address of the under filesystem address. (Default: ${ALLUXIO_HOME}/underFSStorage)

# E.g. “/my/local/path” to use local fs, “hdfs://localhost:9000/alluxio” to use a local hdfs

# ALLUXIO_UNDERFS_ADDRESS

exportALLUXIO_UNDERFS_ADDRESS=hdfs://spark29:9000

# How much memory to use per worker. (Default: 1GB)

# E.g. “1000MB”, “2GB”

# ALLUXIO_WORKER_MEMORY_SIZE

exportALLUXIO_WORKER_MEMORY_SIZE=12GB

# Config properties set for Alluxio master, worker and shell. (Default: “”)

# E.g. “-Dalluxio.master.port=39999”

# ALLUXIO_JAVA_OPTS

# Config properties set for Alluxio master daemon. (Default: “”)

# E.g. “-Dalluxio.master.port=39999”

# ALLUXIO_MASTER_JAVA_OPTS

# Config properties set for Alluxio worker daemon. (Default: “”)

# E.g. “-Dalluxio.worker.port=49999” to set worker port, “-Xms2048M -Xmx2048M” to limit the heap size of worker.

# ALLUXIO_WORKER_JAVA_OPTS

# Config properties set for Alluxio shell. (Default: “”)

# E.g. “-Dalluxio.user.file.writetype.default=CACHE_THROUGH”

# ALLUXIO_USER_JAVA_OPTS

2)worker 下面的添加worker节点的地址

spark24

spark30

spark31

spark32

spark33

三 、主机配置更改

1)在家目录下更改 .bash_profile 添加一下内容:

export TACHYON_HOME=/data/spark/software/alluxio-1.2.0

PATH=$PATH:$HOME/bin:$HADOOP/bin:$JAVA_HOME/bin:$TACHYON_HOME/bin

2) 生效配置

source .bash_profile

四 、Spark 添加依赖Jar

1、在所有的spark主机的spark安装目录下的conf目录下

更改spark-env.sh 后面添加:export SPARK_CLASSPATH=”/data/spark/software/spark-1.5.2-bin-hadoop2.6/lib/alluxio-core-client-spark-1.2.0-jar-with-dependencies.jar:$SPARK_CLASSPATH”

五 、分发到各个Worker节点上去

1、alluxio 软件:scp -r ./alluxio-1.2.0spark30:/data/spark/software/

六、格式化和启动

1、进入到alluxio的安装目录下面的bin目录,执行命令: alluxio format  进行内存格式化。

2、启动集群:./alluxio-start.sh all

七、可能遇到问题

1、启动worker报错,报错内容:Pseudo-terminal will not be allocated because stdin is not a terminal.

更改:alluxio\bin\alluxio-workers.sh  的44行内容

原始内容为:

nohup ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no -t ${worker} ${LAUNCHER} \

改成如下:

nohup ssh -o ConnectTimeout=5 -o StrictHostKeyChecking=no -tt  $ {worker}  ${LAUNCHER} \

2、如果启动报sudo相关命令错误,是因为启动用户未在sudoers里面,需要将用户添加到此文件中,添加方法搜下root位置,再后面添加即可。

内容如下:

root ALL=(ALL) ALL

spark ALL=(ALL) ALL

同时把此文件中的:#Defaults    requiretty 注释掉。

3、如果还报错,可以在启动master之后,一个一个节点去启动worker。

八、 官网安装说明

九、安装后确认

通过访问链接:http://master:19999/ 去查看安装是否成功。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/220652.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月17日 下午7:58
下一篇 2026年3月17日 下午7:58


相关推荐

  • ClawPanel – OpenClaw管理面板使用教程【转载】

    ClawPanel – OpenClaw管理面板使用教程【转载】

    2026年3月14日
    9
  • AAA认证详解

    AAA认证详解802.1x(基于端口的认证)802.1x的主要功能:对接入的用户做认证,防止未授权的用户访问网络802.1x起源于无线当用户插上网线时,交换机会提示用户执行802.1x认证(输入用户名和密码),当开启802.1X认证的交换机,在端口检测到有网卡接入的时候,交换机会想接入该端口的主机发送EAPOL数据帧,要求进行认证在交换机认证成功之前(802.1x)只允许三种流量通过:…

    2022年5月2日
    96
  • Python入门教程(从小白到高级)(新版)

    Python入门教程(从小白到高级)(新版)Python 从一无所知到精通 新版 吐槽 Hello everyone 经历完广东中考折磨的我回来啦 不得不说这届广东考生真的有些困难 先后经历了疫情 然后这次中考又来了一份折磨人的数学试卷 初高中衔接 难度我也觉得有些大 最后我也不多说了 但愿看到这篇教程的广东初三中考生知道过去的都过去了 不要再这么纠结与郁闷 人生路漫漫 不必因为数学失利而感到绝望 毕竟你难别人也会觉得难 你死了别人也可能跟你一样陪葬 收拾好行装 整理好心态 重新出发 活在当下 为未来努力奋斗才是实在 同时也祝愿广州考生能在七月的中

    2026年3月27日
    2
  • 头歌实训平台c语言答案_c语言实训报告实训内容

    头歌实训平台c语言答案_c语言实训报告实训内容目录C语言程序设计编辑与调试环境第1关打印输出HelloWorld第2关打印输出图形第3关求3个数的最大值第4关熟悉C语言调试过程顺序结构程序设计第1关加法运算第2关不使用第3个变量,实现两个数的对调第3关用宏定义常量第4关数字分离第5关计算总成绩和平均成绩第6关求三角形的面积第7关立体几何计算题第8关计算两个正整数的最大公约数选择结构程序设计第1关排序第2关选择结构-闰年判断第3关选择结构-分段函数问题第4关学生成绩等级换算

    2025年11月27日
    4
  • linux修改密码长度限制_linux文件名长度限制修改

    linux修改密码长度限制_linux文件名长度限制修改修改密码长度:设置为不少于8位的。修改最短密码长度需要编辑login.defs文件(vi/etc/login.defs),把下面这行PASS_MIN_LEN5(默认的情况)改为PASS_MIN_LEN8(修改后的情况)login.defs文件是login程序的配置文件 转载于:https://blog.51ct…

    2025年9月19日
    6
  • c++assert函数

    c++assert函数assert 宏的原型定义在 assert h 中 其作用是如果它的条件返回错误 则终止程序执行 include assert h assert intexpressio assert 的作用是先计算表达式 expression 如果其值为假 即为 0 那么它打印一条出错信息 然后通过调用 abort 来终止程序运行 如下图所示 include iostream include assert h usingnam assert h iostream assert h assert h

    2026年3月19日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号