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

posted @ 2021-04-04 00:51  成年人35以上痛的开发  阅读(2608)  评论(0编辑  收藏  举报