当前位置:网站首页>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,则把这个路径替换掉加粗标红部分内容即可。
边栏推荐
- Code is data
- 函数栈帧的形成与释放
- 《汇编语言-王爽》第3章笔记及实验
- 资深【软件测试工程师】学习线路和必备知识点
- WebRTC系列-網絡傳輸之7-ICE補充之提名(nomination)與ICE_Model
- JVM tuning ideas
- Small program of C language practice (consolidate and deepen the understanding of knowledge points)
- expect脚本中使用scp命令的方法,expect脚本中scp命令获取不了值的问题完美解决方法
- openstack实例重启状态就会变成错误处理方法,容器搭建的openstack重启计算节点compute服务方法,开机提示Give root password for maintenance处理方法
- The restart status of the openstack instance will change to the error handling method. The openstack built by the container restarts the compute service method of the computing node and prompts the gi
猜你喜欢

资深【软件测试工程师】学习线路和必备知识点

多线程基础部分Part 1

JVM class loading mechanism

主动学习(active learning)

块级元素&行内元素

Assembly language - Wang Shuang Chapter 13 int instruction - Notes
![Senior [Software Test Engineer] learning route and necessary knowledge points](/img/51/1be2e0812a6bca9e5e8d14bf254254.png)
Senior [Software Test Engineer] learning route and necessary knowledge points

js实现双向数据绑定

JVM overall structure analysis

427-二叉树(617.合并二叉树、700.二叉搜索树中的搜索、98. 验证二叉搜索树、530.二叉搜索树的最小绝对差)
随机推荐
JVM class loading mechanism
Code is data
QListWidgetItem上附加widget
使用CSDN 开发云搭建导航网站
古典密码体制--代换和置换
思维的技术:如何破解工作生活中的两难冲突?
IAR systems fully supports Centrino technology 9 series chips
开门小例子学习十种用例图
Using CSDN to develop cloud and build navigation websites
汇编语言-王爽 第11章 标志寄存器-笔记
693. alternate bit binary number
JVM object composition and storage
项目-h5列表跳转详情,实现后退不刷新,修改数据则刷新的功能(记录滚动条)
Unicast, multicast and broadcast of IP network communication
426 binary tree (513. find the value in the lower left corner of the tree, 112. sum of paths, 106. construct a binary tree from the middle order and post order traversal sequence, 654. maximum binary
JS to implement bidirectional data binding
【QT小点】实现看门狗功能,检测外部程序是否在运行
创建一个基础WDM驱动,并使用MFC调用驱动
软件测试年终总结报告模板
JVM garbage collection mechanism