启动和关闭JBoss As 7.1.1,脚本如下djboss.sh:
#!/bin/sh
#JBOSS_HOME
JBOSS_HOME=/opt/jboss
case "$1" in
start)
echo "Starting JBoss AS7..."
sudo -u jboss sh ${JBOSS_HOME}/bin/standalone.sh &
;;
stop)
echo "Sto...
分类:
其他好文 时间:
2014-07-23 13:20:26
阅读次数:
215
本文主要讲述在standalone cluster部署模式下,应用(Driver Application)所需要的资源是如何获得,在应用退出时又是如何释放的。
分类:
其他好文 时间:
2014-07-22 22:48:15
阅读次数:
243
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.题解:开始想到的方法比较偷懒,直接遍历一遍数组,把每个ListNode对应的值放到...
分类:
其他好文 时间:
2014-07-22 22:45:13
阅读次数:
271
1:Spark生态和安装部署
Spark生态
Spark(内存计算框架)
SparkSteaming(流式计算框架)
Spark SQL(ad-hoc)
Mllib(Machine Learning)
GraphX(bagel将被取代)
安装部署
Spark安装简介
Spark的源码编译
Spark Standalone安装
Spark Standalone H...
分类:
其他好文 时间:
2014-07-22 00:27:35
阅读次数:
317
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.以下为补充知识,百度到的罗马数字写法:个位数举例I, 1 】II, 2】 III, 3】...
分类:
其他好文 时间:
2014-07-22 00:04:34
阅读次数:
190
1.Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
2.Given a singly linked list where elements are sorted in ascending order, convert it to a heig...
分类:
其他好文 时间:
2014-07-21 23:45:53
阅读次数:
264
在实际编码过程中,有时候会出现装箱和拆箱操作。下面就类分别认识一下:需要注意的是,类型转换和这个是不同的。Convert方法并没有发生装箱和拆箱操作,而是类型转换,包括int.parse等等。装箱,是把值类型拷贝了一个副本放在堆内存中。拆箱,在引用类型直接找到值类型存储的位置(Person对象是引用...
分类:
其他好文 时间:
2014-07-21 14:24:30
阅读次数:
258
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2014-07-21 08:36:32
阅读次数:
208
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; ...
分类:
其他好文 时间:
2014-07-21 00:11:12
阅读次数:
254
1.xml可扩展标记语言(Extensible Makeup Language)最简单的声明语法: 用encoding属性说明文档的字符编码: 用standalone属性说明文档是否独立: 格式良好的XML文档必须有且仅有一个根标签,其它标签都是这个根标签的子孙标签2.在编写XML文件时,有些内容可...
分类:
其他好文 时间:
2014-07-20 23:04:46
阅读次数:
318