:::tips
停止所有服务,重新格式化,重启服务
alluxio-stop.sh all
alluxio format
alluxio-start.sh all SudoMount
#加载数据到缓存中
alluxio fs distributedLoad /alluxio目录
#查看alluxio活动master
alluxio fs leader
#查看文件目录大小及已缓存数据量
alluxio fs du -s -h /dir
#将目录或文件分发到master及worker节点
alluxio copyDir /dir
#集群挂载
alluxio fs mount /mount_point_dir hdfs://mycluster/lhj-test —option alluxio.underfs.hdfs.configuration=/home/hadoop/alluxio/conf/hdfs-site.xml:/home/hadoop/alluxio/conf/core-site.xml
:::
Usage: alluxio fs [generic options]
[cat
[checkConsistency [-r] [-t|—threads
[checksum
[chgrp [-R/—recursive]
[chmod [-R/—recursive]
[chown [-R/—recursive]
[copyFromLocal [—thread
[copyToLocal [—buffersize
[count [-h]
[cp [-R/-r/—recursive] [—buffersize
[distributedCp [—active-jobs
[distributedLoad [—replication
[distributedMv
[du [-h|-s|-g|-m]
[free [-f]
[getCapacityBytes]
[getSyncPathList]
[getUsedBytes]
[getfacl
[head [-c
[help [
[leader]
[load [—local]
[loadMetadata [-R] [-F]
[location
[ls [-d|-f|-p|-R/—recursive|-h|—sort=option|—timestamp=option|-r]
[masterInfo]
[mkdir
[mount [—readonly] [—shared] [—option
[mv
[persist [-p|—parallelism <#>] [-t|—timeout
[pin
[rm [-R/-r/—recursive] [-U] [—alluxioOnly]
[setReplication [-R] [—max
[setTtl [—action delete|free]
Usage: alluxio COMMAND [GENERIC_COMMAND_OPTIONS] [COMMAND_ARGS]
COMMAND is one of:
extensions Manage extensions to core Alluxio
format [-s] Format Alluxio master and all workers (if -s specified, only format if underfs is local and doesn’t already exist)
formatJournal Format Alluxio master journal locally
formatMasters Format Alluxio master nodes
formatWorker Format Alluxio worker nodes
bootstrapConf Generate a config file if one doesn’t exist
fs Command line tool for interacting with the Alluxio filesystem.
fsadmin Command line tool for use by Alluxio filesystem admins.
table Command line tool for interacting with the Alluxio table service.
getConf [key] Look up a configuration key, or print all configuration.
job Command line tool for interacting with the job service.
logLevel Set or get log level of Alluxio servers.
runClass Run the main method of an Alluxio class.
runTest Run an end-to-end test on an Alluxio cluster.
runTests Run all end-to-end tests on an Alluxio cluster.
runHmsTests Test the integration between Alluxio and the target hive metastore. Try ‘alluxio runHmsTests -h’ for more help.
NOTE: This command requires valid hive metastore uris to run tests against.
runHdfsMountTests Test the integration between Alluxio and the target HDFS path.
runJournalCrashTest Test the Master Journal System in a crash scenario. Try ‘alluxio runJournalCrashTest -help’ for more help.
NOTE: This command will stop the existing server and creates a new one!
runUfsIOTest Test the Alluxio throughput to the UFS path. Try ‘alluxio runUfsIOTest -help’ for more help.
NOTE: This command requires a valid ufs path to write temporary files into.
runUfsTests Test the integration between Alluxio and the target under filesystem. Try ‘alluxio runUfsTests -help’ for more help.
NOTE: This command requires a valid ufs path to run tests against.
readJournal Read an Alluxio journal file from stdin and write a human-readable version of it to stdout.
upgradeJournal Upgrade an Alluxio journal version 0 (Alluxio version < 1.5.0) to an Alluxio journal version 1 (Alluxio version >= 1.5.0).
killAll [-s]
copyDir
clearCache Clear OS buffer cache of the machine.
docGen Generate docs automatically.
version Print Alluxio version and exit.
validateConf Validate Alluxio conf and exit.
validateEnv Validate Alluxio environment.
collectInfo Collects information to troubleshoot an Alluxio cluster.
GENERIC_COMMAND_OPTIONS supports:
-D
