- 博客(13)
- 收藏
- 关注
转载 java hadoop 接口
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.BlockLocation; import org.apache.hadoop.fs.
2013-12-29 11:45:50 662
原创 C++读写二进制文件块
#include #include #include using namespace std; int main() { ifstream infile; ofstream outfile; infile.open("**.stl",ios_base::binary); if (!infile.is_open()) { cout exit(EXIT_FAILURE);
2013-12-17 16:08:03 750
原创 jdom 操作xml
JDOM 对Xml文件(增、删、改、查) package bean; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream
2013-12-11 15:15:38 393
原创 VBS根据进程号删除进程
strComputer = "." set fso=CreateObject("Scripting.FileSystemObject") Set wbemServices = Getobject("winmgmts:\\" & strComputer) while 1 Set wbemObjectSet = wbemServices.InstancesOf("Win32_Process")
2013-12-09 16:05:44 887
转载 xml读写删
2011-08-26 15:41 JDOM 对Xml文件(增、删、改、查) JDOM 对Xml文件(增、删、改、查) package bean; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import j
2013-11-18 20:07:07 594
原创 xml的添加
package xml2; import java.io.File; import java.io.FileOutputStream; import java.io.FileWriter; import org.jdom.Document; import org.jdom.Element; import org.jdom.ProcessingInstruction; impo
2013-11-18 13:51:08 446
原创 hadoop 中的mapreduce编程模板
public class MyClass extends Configured implements Tool { public static class MapClass extends MapReduceBase implements Mapper{ public void map(Text key,Text value,OutputCollector
2013-11-11 21:49:10 487 1
原创 jdom 读取xml文件
package test; import org.jdom.Document; import java.io.File; import org.jdom.Element; import org.jdom.input.SAXBuilder; import java.util.List; public class TeskDOM { /**
2013-11-11 21:47:08 324
转载 hadoop wordcount源代码分析
package org.apache.hadoop.examples; import java.io.IOException; import java.util.StringTokenizer; importorg.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.ap
2013-10-10 10:53:19 260
转载 vbs脚本
Resource Page Description This script allows you to pull the basic information of a remote device by IP address or Hostname. It must be ran as an administrator account. It uses .vbs and WMI to perfo
2013-10-06 22:19:02 359
原创 VBS调用封装CST中的易错地方
CST中对象中的方法用()调用参数,而在vbs内编辑时不能用括号。 FrequencyRange方法是Solver的方法,所以要如下使用 ems.Solver .FrequencyRange"Fmin","Fmax" ems是CST对象
2013-10-06 14:05:28 538
转载 vbs调用CST
代码4:VBS调用CST进行运算 Dim app Set app = CreateObject("CSTStudio.Application") Dim mws Set mws = app.OpenFile("D:/VBS/1.cst") 'mws.Visible = False With mws .DeleteResults .Rebuild .Solver.Start
2013-10-04 11:19:25 1054
原创 Hadoop安装的关键
(1)在进行无密码登录时,共钥要复制到本地节点和其他节点。(关键是要复制到本地节点)。 (2)datanode无法启动时,首先分析防火墙是否关闭。 (3)本地节点和远端节点都要安装hadoop和JDK.
2013-10-04 11:18:05 362
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人