需要准备2个文件Apache-tomcat-5.5.25.zip(推荐使用tomcat6)hdfs-webdav.war 解压tomcat# unzip apache-tomcat-5.5.25.zip 复制war到webapps# cd apache-tomcat-5.5.25# cp /soft...
分类:
Web程序 时间:
2014-07-12 00:28:44
阅读次数:
520
1、从HDFS中读取数据
Configuration conf = getConf();
Path path = new Path(pathstr);
FileSystem fs = FileSystem.get(conf);
FSDataInputStream fsin= fs.open(path );
BufferedReader br =null;
Strin...
分类:
其他好文 时间:
2014-07-09 09:17:40
阅读次数:
290
##本人在测试机上测试过,效果不错fs.file-max=6553600
net.ipv4.ip_local_port_range=1024 65000
net.ipv4.tcp_max_orphans=3276800
net.ipv4.tcp_max_syn_backlog=262144
net.ipv4.tcp_timestamps=0
net.ipv4.tcp_mem=94500000915000000927000000
net.ipv4.tcp_fin_timeout=1..
分类:
系统相关 时间:
2014-07-09 08:42:50
阅读次数:
371
下面的matlab程序分别使用周期图法、相关函数法以及AR谱方法计算信号的功率谱。% power spectrum estimated
clear all;
clc;
close all;
Fs=1000; % 采样频率
nfft = 1024; % fft计算点数
%产生含有噪声的序列
n=0:1/Fs:1;
xn=cos(2*pi*100*n)+3*cos(2*pi*200...
分类:
其他好文 时间:
2014-07-08 16:23:01
阅读次数:
277
作者:朱老师,华清远见嵌入式学院讲师。一、开发平台主机:ubuntu12.04系统;目标机:FS210平台;内核版本:Linux-3.0.8交叉编译工具:arm-cortex_a8-linux-gnueabi-gcc;二、步骤运行Ubuntu12.04系统,打开命令行终端。$cd~
$cddriver
$mkdirlogo
$cdlogo将“fs210光盘:实验..
分类:
系统相关 时间:
2014-07-08 10:53:26
阅读次数:
484
/**
* 获取路径文件夹下的所有文件
* @param path
* @return
*/
public static File[] getKeywordFiles(String path) {
File dir = new File(path);
if (!dir.exists())
return null;
File[] fs = dir.listFile...
分类:
编程语言 时间:
2014-07-05 23:31:41
阅读次数:
192
1.1. hadoop抽象文件系统 因java.io.FileSystem为私有抽象包,不可被外界包引用,因此hadoop特别提供了一个抽象的文件系统, HDFS只是一个具体实现,org.apache.hadoop.fs.FileSystem hadoop通过getFi...
分类:
其他好文 时间:
2014-07-02 21:01:32
阅读次数:
284
1 //图片的"读"操作 2 //①参数是图片路径:返回Byte[]类型: 3 //参数是图片的路径 4 public byte[] GetPictureData(string imagePath){ 5 FileStream fs=new FileStream(imagePath,FileMod....
分类:
其他好文 时间:
2014-07-02 14:56:43
阅读次数:
202
createdatabasePhotoRepositoryonprimary(name=N‘PhotoRepository‘,filename=N‘E:\PhotoRepository.mdf‘,size=5MB,filegrowth=1024KB),filegroupFS_PhotoRepositorycontainsfilestream(name=‘FS_PhotoRepository‘,filename=N‘E:\FileGroup\FileStream‘)logon(name=N‘PhotoRepos..
分类:
数据库 时间:
2014-07-01 10:08:27
阅读次数:
268
(RedHat10gOracle环境)1、配置OracleClusterSynchronization(CSS)要想使用ASM,必须先配置并启动CSS[root@redhat10g~]#cd/u01/app/oracle/product/10.2.0/db_1/bin[root@redhat10gbin]#./localconfigadd2、配置AutomaticStorageManagement(ASM)实例参数[oracle@aix201~]$..
分类:
其他好文 时间:
2014-07-01 09:50:22
阅读次数:
231