摘要: Runtime.getRuntime().addShutdownHook(Thread)为虚拟机添加关闭时添加钩子线程 阅读全文
posted @ 2014-08-11 17:37 JerryShao 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 1. $HADOOP_HOME/bin/ hadoop#!/usr/bin/env bash# Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements. S... 阅读全文
posted @ 2014-08-11 13:00 JerryShao 阅读(812) 评论(0) 推荐(0) 编辑
摘要: ${varname:-defaultvalue}的意思是:如果varname存在且非null,则返回其值;否则,返回defaultvalue。用途:如果变量未定义,则返回默认值。 阅读全文
posted @ 2014-08-11 10:50 JerryShao 阅读(232) 评论(0) 推荐(0) 编辑