当前位置:网站首页>Unrecognized VM option ‘‘
Unrecognized VM option ‘‘
2022-06-27 06:08:00 【啊仪的小菜脯】
问题来源:
进行 Spark 编程实践时,需要用到 sbt 工具进行编译打包,而 Spark 中没有自带 sbt,故需要单独安装,可以到官网 http://www.scala-sbt.org 中下载相应版本即可。当下载并解压完成后需要对 sbt 进行配置,首先需要将 sbt 安装目录下的 bin/sbt-launch.jar 拷贝一份到 sbt 安装目录下,然后在安装目录下编辑文件 sbt 创建一个 Shell 脚本,用于启动 sbt,在安装目录下(本机为 /usr/local/sbt)执行如下指令
vim /usr/local/sbt/sbt
接着输入如下配置内容:
#!/bin/bash
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M"
java $SBT_OPTS -jar dirname $0/sbt-launch.jar “[email protected]”
保存退出后,执行如下命令为该脚本增加可执行权限:
chmod u+x /usr/local/sbt/sbt
接着通过如下命令查看 sbt 版本信息:
cd /usr/local/sbt
./sbt sbtVersion
发现报了如题所述的错误
解决方法:
这里主要有两个错误:第一个是配置内容第三行的 XX:后不可手动加换行,即除了编译器自动换行外,所有配置内容都不可手动加换行符;第二个是配置内容中加粗标红部分应该换成你本机的 sbt 安装目录,比如我本机的 sbt 安装目录为 /usr/local/sbt,则把这个路径替换掉加粗标红部分内容即可。
边栏推荐
- 30个单片机常见问题及解决办法!
- 多线程带来的的风险——线程安全
- 30 SCM common problems and solutions!
- Win 10 如何打开环境变量窗口
- IAR Systems全面支持芯驰科技9系列芯片
- 思维的技术:如何破解工作生活中的两难冲突?
- [collection] Introduction to basic knowledge of point cloud and functions of point cloud catalyst software
- 使用 WordPress快速个人建站指南
- NEON优化1:软件性能优化、降功耗怎么搞?
- LeetCode 0086. Separate linked list
猜你喜欢

汇编语言-王爽 第8章 数据处理的两个基本问题-笔记

JVM object composition and storage

IAR Systems全面支持芯驰科技9系列芯片
![[FPGA] realize the data output of checkerboard horizontal and vertical gray scale diagram based on bt1120 timing design](/img/80/c258817abd35887c0872a3286a821f.png)
[FPGA] realize the data output of checkerboard horizontal and vertical gray scale diagram based on bt1120 timing design

js实现双向数据绑定

openresty使用文档

G1 and ZGC garbage collector

30 SCM common problems and solutions!

Multithreading basic part part 1

Double position relay rxmd2-1mrk001984 dc220v
随机推荐
LeetCode 0086.分隔链表
The SCP command is used in the expect script. The perfect solution to the problem that the SCP command in the expect script cannot obtain the value
Configuration of vscode korofileheader
Multithreading basic part2
Senior [Software Test Engineer] learning route and necessary knowledge points
Multithreading basic Part3
日期 数据库日期 字符串 之间互相转换
【Cocos Creator 3.5.1】event.getButton()的使用
LeetCode 0086. Separate linked list
思维的技术:如何破解工作生活中的两难冲突?
函数式 连续式
Yaml file encryption
310. minimum height tree
【QT小作】使用结构体数据生成读写配置文件代码
Nlp-d62-nlp competition d31 & question brushing D15
JVM class loading mechanism
JVM common instructions
Multithreading basic part part 1
软件测试年终总结报告模板
Quick personal site building guide using WordPress