ubuntu安装hive

环境:ubuntu-12.04-server-amd64

JDK1.7

hidoop分布式请看http://blog.ziki.cn/984.html

如把hadoop当作数据库的存储部分的话,那么hive可以理解为一个sql语言解释器,或者可以叫执行类SQL语言的shell解释器。

使用hive中可以使用表的操作select/insert/create来映射到hadoop的hdfs系统中一系列文本操作,可以理解为sql对hdfs的行为映射.

更可以通过实现自定义的udf、udaf来实现复杂的筛选select,这些带有函数的select语句hive会自动翻译成hadoop的mapre[......]

Read more

ubuntu 12.04 LTS 版eclipse svn报Failed to load JavaHL Library

Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path
java.library.path = /usr/lib/jni

按照以前的装法

1、sudo apt-get install libsvn-java

2、eclipse.ini中增加参数

-vmargs[......]

Read more

避免javax.xml.bind.UnmarshalException兼容一个更新的webservice

CXF的jaxb客户端调用webservice的情况下,默认情况下服务端更新了wsdl如xml增加了一个属性,假如不再根据wsdl重新生成client就会报错 javax.xml.bind.UnmarshalException: unexpected element ,但新增的这个元素对原有的业务又是无用的多余的。

那对于客户端来说就可以不升级client,解决办法是将set-jaxb-validation-event-handler 设置为false

JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();

Cl[......]

Read more

cxf自动生成的wsdl被nginx代理后soap:address location

由于开发webservice使用的是cxf的java first、wsdl是自动生成的。其中生成的

<wsdl:port binding="tns:MyServiceSoapBinding" name="MyServicePort">

<soap12:address location="http://www.domain.com/appcontext/Service/MyService"/>

</wsdl:port>
 
location 是根据请求[......]

Read more

tomcat在windows下安装后台服务

1、用命令行进入tomcat_home/bin/目录,运行service install tomcat_c4。进入服务列表设置为自动服务。

2、使用regedit进入注册表

找到

HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun 2.0\tomcat_c4\Parameters\Java

修改

JvmMs 选10进制 设置为512 

JvmMx 选10进制 设置为512

Options 的值增加

 

-XX:NewRatio=3
-XX:PermSize=128m
-[......]

Read more

Another unnamed CacheManager already exists in the same VM.

ehcache版本2.5.1
 
nested exception is net.sf.ehcache.CacheException: Another unnamed CacheManager already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
1. Use one of the CacheManager.create() static factory methods to reuse same[......]

Read more

Pages: 1 2 3 4 5 6 7 8 9 10 ...12 13 14 Next