- 浏览: 19135 次
-
最新评论
文章列表
Maven项目下update maven后Eclipse报错:java.lang.ClassNotFoundException: ContextLoaderL (2014-02-28 14:24:56)转载▼
标签: 文化 分类: java
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.Context ...
安装hive1..21
- 博客分类:
- hadoop
hive1.2.1
apache-hive-1.2.1-bin.tar.gz
wget http://mirrors.cnnic.cn/apache/hive/hive-1.2.1/apache-hive-1.2.1-bin.tar.gz
tar xzvf apache-hive-1.2.1-bin.tar.gz -C /home/pipstat/yarn/
[pipstat@PIPtest58 hadoop]$ sbin/start-all.sh
This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
16/03/15 20:10:15 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Starting namenodes on [press5.cn]
pi ...
[pipstat@PIPtest58 hadoop]$ bin/hadoop jar share/hadoop/mapreduce/sources/hadoop-mapreduce-examples-2.5.2-sources.jar org.apache.hadoop.examples.WordCount input output
16/03/15 20:14:25 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes wh ...
hadoop如何将本地磁盘文件上传到服务器
- 博客分类:
- hadoop
package com.pip.data.hadoop.util.test;
import java.io.File;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.util.Tool;
i ...
hadoop中文乱码问题
- 博客分类:
- hadoop
1.hadoop默认编码上utf-8
2.如果输入文件如果是保存成utf-8格式,则wordcount.java程序中不需要转码,输出文件也是uft-8文件格式;
如果输出文件格式为其他格式,则在wordcount.java程序中需要对其转码,如果不转换编码,在程序打钱出输入文件内容时中文显示为乱码,转到GBK后,输出文件中的内容自动生成到输出文件时格式为utf-8.
3.在Xshell中查看输出文件时,使用命令/home/hadoop/hadoop/bin/hadoop fs -cat /wanghongen/demo/fileout/wordcount_out1/part-r-00000前, ...