`
fighting_2013
  • 浏览: 14771 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论
文章列表
主要是通过python的DBUtils库、MySQLdb库来实现连接池操作数据库 import MySQLdb from DBUtils.PooledDB import PooledDB class DBHelper(object): __pool = None def __init__(self): self._conn = DBHelper.__getConnection() self._cursor = self._conn.cursor() @staticmethod ...
相关代码: OozieClient oozieClient = new OozieClient("http://namenode:11000/oozie"); Properties conf = oozieClient.createConfiguration(); conf.setProperty(OozieClient.APP_PATH, "hdfs://namenode:49000/user/hadoop/examples/apps/map-reduce-1"); conf.setProperty("jobTracker", &qu ...
1.运行Hive需要用到hive-site.xml文件以及对应版本的hive的jar包,于是将hive-site.xml文件和当前所用hive版本下相关的jar包上传到HDFS上面。 2.修改examples/apps/hive/workflow.xml文件,主要添加对hive-site.xml配置的支持 <job-xml>${hiveSitePath}</job-xml> 其中需要注意事项:job-xml顺序 <xs:sequence>     <xs:element name="job-tracker" type="xs ...
1.解压oozie目录下的oozie-client-3.3.2.tar.gz、oozie-examples.tar.gz、oozie-sharelib-3.3.2.tar.gz 2.拷贝examples目录到HDFS上面 hadoop fs –copyFromLocal examples /user/hadoop/ 3.修改oozie目录下examples/apps/map-reduce/job.properties 主要是修改NameNode和JobTracker的值 nameNode=hdfs://centos.master:9000 jobTracker=centos.master:900 ...
1.oozie包的下载 3.0.*版本或者之前的版本是可以离线安装的(例如oozie-3.0.2-distro.tar.gz),在往上的版本(例如 oozie-3.3.2-distro.tar.gz和oozie-4.0.0-distro.tar.gz等)都是在线安装的版本,需要用到MAVEN工具,在安装过程中可能会碰到依赖问题,可以修改相关的POM文件。 2.解压相关tar包 tar -xzvf oozie-3.3.2-distro.tar.gz 3. 进入到解压好的目录下面,编辑 bin/addtowar.sh文件,修改相应的hadoop版本支持,4.0.0可以不用修改。 if [ " ...
转自 http://blog.csdn.net/xiang520jl/article/details/8958642 linux 下 启动tomcat 报: Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program 先看Tomcat的startup.bat,它调用了catalina.bat,而catalina.bat则调用了setclasspath.bat。只要在s ...
Global site tag (gtag.js) - Google Analytics