This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.gdcn.bpaf.urms.web.handle; | |
import java.io.Closeable; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<project basedir="." default="run" name="run-on-hadoop"> | |
<property environment="env"/> | |
<property name="fs.default.name" value="hdfs://192.168.0.205:9000" /> | |
<property name="mapred.job.tracker" value="h205:9001" /> | |
<property name="HADOOP_HOME" value="C:/cygwin/home/Winseliu/hadoop-1.0.0" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub 处理行内去掉与第一列相同的数据() | |
' 整个过程使用: | |
' | |
' 1. 选中需要转换的数据区域 | |
' 2. 点击宏 | |
' | |
Dim sel As Variant | |
Set sel = Selection | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.winse; | |
import java.util.Arrays; | |
import java.util.BitSet; | |
import java.util.LinkedList; | |
import java.util.List; | |
/** | |
* | |
* 单纯质因数的合数 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.winse.btrace; | |
/* BTrace Script Template */ | |
import static com.sun.btrace.BTraceUtils.jstack; | |
import static com.sun.btrace.BTraceUtils.name; | |
import static com.sun.btrace.BTraceUtils.print; | |
import static com.sun.btrace.BTraceUtils.printArray; | |
import static com.sun.btrace.BTraceUtils.println; | |
import static com.sun.btrace.BTraceUtils.probeClass; | |
import static com.sun.btrace.BTraceUtils.probeMethod; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hadoop@hadoop-master1 ~]$ hdfs haadmin -transitionToActive --forcemanual nn1 | |
You have specified the forcemanual flag. This flag is dangerous, as it can induce a split-brain scenario that WILL CORRUPT your HDFS namespace, possibly irrecoverably. | |
It is recommended not to use this flag, but instead to shut down the cluster and disable automatic failover if you prefer to manually manage your HA state. | |
You may abort safely by answering 'n' or hitting ^C now. | |
Are you sure you want to continue? (Y or N) Y | |
14/06/18 10:43:18 WARN ha.HAAdmin: Proceeding with manual HA state management even though | |
automatic failover is enabled for NameNode at hadoop-master1/192.168.32.11:8020 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hadoop@localhost tmp]$ tar zcvf test.tar.gz . | |
./ | |
./c/ | |
./c/1/ | |
./c/1/2/ | |
./b/ | |
./b/1/ | |
./b/1/2/ | |
./a/ | |
./a/1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winse@Lenovo-PC /cygdrive/e/local/opt | |
$ ssh hadoop@cluster ' cat | tar zxf - --exclude=sources --exclude=doc --exclude=*.cmd ' < ./hadoop-2.2.0.tar.gz | |
winse@Lenovo-PC /cygdrive/e/local/opt | |
$ ssh root@cluster ' cat | tar zxf - ' < ./jdk-7u60-linux-i586.gz | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
winse@Lenovo-PC ~ | |
$ ssh root@cluster | |
Last login: Sat Jun 21 20:54:19 2014 from 192.168.154.1 | |
[root@localhost ~]# cd /etc/yum.repos.d/ | |
[root@localhost yum.repos.d]# wget http://public-repo-1.hortonworks.com/ambari/c entos6/1.x/updates/1.6.0/ambari.repo | |
--2014-06-21 21:36:44-- http://public-repo-1.hortonworks.com/ambari/centos6/1.x /updates/1.6.0/ambari.repo | |
Resolving public-repo-1.hortonworks.com... 54.230.234.103, 54.230.234.83, 54.230.234.203, ... | |
Connecting to public-repo-1.hortonworks.com|54.230.234.103|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 1074 (1.0K) [binary/octet-stream] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# root用户操作 | |
apache-maven-3.0.4 | |
jdk1.7.0_60 | |
apache-ant-1.9.2 | |
vim /etc/profile | |
source /etc/profile | |
## 节约点下载的时间,直接共享使用主机的maven数据 |
OlderNewer