我有一个带有Ubuntu 14和1GBRAM的个人服务器。我想配置运行在此服务器中的Liferay中的Glassfish。
我正在尝试,但是初始化过程给了我这样的信息:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c8bd7000, 84496384, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment
我已经将我的代码精简为这个简单的for循环。我不明白为什么计数器tot_add不是累积的,而是始终是1的:
cd /path/to/my/workspace;
tot_add=0;
for d in ./*/;
do (cd "$d";
let tot_add=tot_add+1;
echo $tot_add;
) done
预期结果:
1
2
3
实际效果
1
1
1
我读过这个关于带管道的子壳的答案。
但是,我这里不使用管道字符。
老实说,我不确定我用正确的名字来称呼这些东西,所以很抱歉。
我在一个类文件中得到了这个:
class eSpecies {
protected String name;
protected String file;
protected int hp;
protected int atk;
protected int exp;
protected int type;
public int kill;
protected String flavour;
eSpecies(String name, String file,
我已经在HDInsight上安装了SPARK集群,并且正在尝试使用使用。
我已经在集群创建期间使用了自定义脚本来启用spark集群上的,如下所述。
当我运行记事本时,
import org.apache.spark.sql._
import org.apache.spark.sql.functions._
import org.graphframes._
我得到以下错误
<console>:45: error: object graphframes is not a member of package org
import org.graphframes._