mac系統yarn使用報錯:ERROR: add is not COMMAND nor fully qualified CLASSNAME.


出現錯誤的過程:

mac 系統上使用阿里的X6(@antv/x6)

x6 快速上手:

1   npm install @antv/x6 --save

2   yarn add @antv/x6        此步驟出錯:

具體錯誤信息:

bogon:XXXXX $ yarn add @antv/x6
ERROR: add is not COMMAND nor fully qualified CLASSNAME.
Usage: yarn [OPTIONS] SUBCOMMAND [SUBCOMMAND OPTIONS]
or yarn [OPTIONS] CLASSNAME [CLASSNAME OPTIONS]
where CLASSNAME is a user-provided Java class

OPTIONS is none or any of:

--buildpaths attempt to add class files from build tree
--config dir Hadoop config directory
--daemon (start|status|stop) operate on a daemon
--debug turn on shell script debug mode
--help usage information
--hostnames list[,of,host,names] hosts to use in worker mode
--hosts filename list of hosts to use in worker mode
--loglevel level set the log4j level for this command
--workers turn on worker mode

SUBCOMMAND is one of:


Admin Commands:

daemonlog get/set the log level for each daemon
node prints node report(s)
rmadmin admin tools
scmadmin SharedCacheManager admin tools

Client Commands:

applicationattempt prints applicationattempt(s) report
app|application prints application(s) report/kill application/manage long running application
classpath prints the class path needed to get the hadoop jar and the required libraries
cluster prints cluster information
container prints container(s) report
envvars display computed Hadoop environment variables
jar <jar> run a jar file
logs dump container logs
nodeattributes node attributes cli client
queue prints queue information
schedulerconf Updates scheduler configuration
timelinereader run the timeline reader server
top view cluster information
version print the version

Daemon Commands:

nodemanager run a nodemanager on each worker
proxyserver run the web app proxy server
registrydns run the registry DNS server
resourcemanager run the ResourceManager
router run the Router daemon
sharedcachemanager run the SharedCacheManager daemon
timelineserver run the timeline server

SUBCOMMAND may print help when invoked w/o parameters or with -h.

 

同時 yarn --version 也不能使用

網上搜索到需要安裝:yarn

具體安裝過程如下:

1、touch ~/.bash_profile

2、open -e ~/.bash_profile

3、source ~/.bash_profile

 

具體參照:

https://blog.csdn.net/qq_20125211/article/details/86528651


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM