原创 hive 安裝警告 WARN conf.HiveConf: HiveConf of name hive.metastore.local does not exist

解決方法: 在0.10  0.11或者之後的HIVE版本 hive.metastore.local 屬性不再使用。 在配置文件裏面:  <property>  <name>hive.metastore.local</name>

原创 truts2中表單可以不用struts自帶的標籤,直接用html的標籤能夠提交數據到action

truts2中表單可以不用struts自帶的<s:form>標籤,直接用html的<form>標籤能夠提交數據到action,當然可以自動爲action裏的參數賦值。 在JSP頁面導入<%@ taglib prefix="s" uri="

原创 Hive使用MySQL保存Metastore

Hive 將元數據存儲在 RDBMS 中,有三種模式可以連接到數據庫:  1)ingle User Mode: 此模式連接到一個 In-memory 的數據庫 Derby,一般用於 Unit Test。  2)Multi User Mo

原创 centos fcitx 安裝 配置 詳解

一,安裝fcitx依賴包 查看複製打印? [root@localhost download]$ yum install gettext gettex

原创 使用ssh公鑰實現免密碼登錄

ssh 無密碼登錄要使用公鑰與私鑰。linux下可以用用ssh-keygen生成公鑰/私鑰對,下面我以CentOS爲例。 有機器A(192.168.

原创 struts2中web.xml的路徑問題

① 完全匹配   <url-pattern>/test/list.do</url-pattern>   ② 路徑匹配   <url-pattern>/*</url-pattern> struts2匹配根路徑下的全部請求 ③ 擴展名匹配  

原创 hadoop僞分佈式搭建

1.準備Linux環境1.0點擊VMware快捷方式,右鍵打開文件所在位置 -> 雙擊vmnetcfg.exe -> VMnet1 host-onl

原创 java中的private static變量的小心得

package zz; public class zz {private static String z="12321";public void set(String zz){   z=zz;//static修飾的變量不能用this.z=

原创 spring中自定義屬性編輯器CustomEditorConfigurer

什麼是屬性編輯器,作用?  * 自定義屬性編輯器,spring配置文件中的字符串轉換成相應的對象進行注入  spring已經有內置的屬性編輯器,我們

原创 使用命令行編譯打包運行自己的MapReduce程序 Hadoop2.7.2

網上的 MapReduce WordCount 教程對於如何編譯 WordCount.java 幾乎是一筆帶過… 而有寫到的,大多又是 0.20 等舊版本版本的做法,即 javac -classpath /usr/local/hado

原创 RPC小例子解決Exception in thread "main" java.lang.reflect.UndeclaredThrowableException

首先服務端和客戶端都需要導入hadoop包內的/common下的三個jar,以及/common/lib與/sources(否則報log4j warn)下所有依賴包。 然後服務端和客戶端所在包(就是項目內路徑)必須一致,否則會出現如下錯誤

原创 linux關閉防火牆

        關閉防火牆#查看防火牆狀態service iptables status#關閉防火牆service iptables stop#查看防火牆開機啓動狀態chkconfig iptables --list#關閉防火牆開機啓動c

原创 Struts2配置詳解_配置Action

Struts2的核心功能是action,對於開發人員來說,使用Struts2主要就是編寫action,action類通常都要實現com.opensymphony.xwork2.Action接口,並實現該接口中的execute()方法。

原创 hadoop解決Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/util/Apps

linux+eclipse+本地執行WordCount拋出下面異常: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/ut

原创 dfs.name.dir與dfs.data.dir

dfs.name.dir Determines where on the local filesystem the DFS name node should store the name table(fsimage). If this