Time of Update: 2018-12-03
1.open.html<script type="text/javascript"><!-- function openWindow(){ window.open("new.html","newWindow","width=200,height=100,toolbar=no"); }//--></script><a href="#" onclick="openWindow()">open函數開啟新視窗</a>&
Time of Update: 2018-12-03
2010-07-21 10:12:11,987 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceIDs in /home/admin/joe.wangh/hadoop/data/dfs.data.dir: namenode namespaceID = 898136669; datanode namespaceID = 2127444065
Time of Update: 2018-12-03
只敘述secondary namenode部署出錯所產生的錯誤及解決方案環境:suse 10.1namenode 單獨部署在cloud1secondary namenode 單獨部署在 cloud3叢集部署完成後使用Jps查看進程,發現該有的進程都有,hdfs也能上傳下載檔案 查看secondary name 上的log,發現在doCheckpoint都失敗2011-11-11 00:02:58,154 ERROR
Time of Update: 2018-12-03
localhost: Error: JAVA_HOME is not set.啟動start-all.sh時出現如下錯誤:root@ubuntu:/home/chenwq/hadoop/hadoop-0.21.0/bin# start-all.shThis script is Deprecated. Instead use start-dfs.sh and start-mapred.shstarting namenode, logging to
Time of Update: 2018-12-03
Exception in thread "main" java.net.BindException: Cannot assign requested addressat sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)at
Time of Update: 2018-12-03
ExtJs有個Window,然後有個屬性html(iframe),到另外一個頁面,然後在另外頁面關閉,同時關閉window1、例:建立window 使用html屬性引入iframe 開啟一個頁面 win = new Ext.Window({ title: "add script", id: 'winScript', width: '70%', param: param, height :Ext.getBody().getHeight() - 65, maximizable:
Time of Update: 2018-12-03
第一部分: 如何設定Secondary NameNode節點(單獨的) 1. 在masters檔案中添加 Secondary節點的主機名稱。 2. 修改hdfs-default.xml 檔案 <property> <name>dfs.http.address</name> <value>client148.hadoop.local:50070</value>
Time of Update: 2018-12-03
深深的為自己android知識的遺忘感到蛋疼!問:為什麼要配置ADB ?答:不配置的話,每次用到ADB都要進到adb所在的目錄才能操作,過於麻煩。配置之後直接在終端輸入ADB即可。一、終端中輸入 cd ~二、輸入touch .bash_profile 斷行符號三、輸入open -e .bash_profile斷行符號後會在TextEdit中開啟這個檔案(如果未配置過環境變數,應該是個空白檔案)。String temp="export
Time of Update: 2018-12-03
要建立form表單,設定form表單的target 的值 與window.open()方法開啟的url相同 1、在Firefox瀏覽器下的方法: openPostWindow:function (url, data, name){ var tempForm = document.createElement("form"); tempForm.id="tempForm1"; tempForm.method="post";
Time of Update: 2018-12-03
異常提示::Save could not be completed.Reason:Some characters cannot be mapped using "gbd" characters encoding.Either change the encoding or remove the characters which are not supported by the "gdb" characters
Time of Update: 2018-12-03
【轉】站內信設計思路“站內信”不同於電子郵件,電子郵件通過專門的郵件伺服器發送、儲存。而“站內信”是系統內的訊息,說白了,“站內信”的實現,就是通過資料庫插入記錄來實現的。 “站內信”有兩個準系統。一:點到點的訊息傳送。使用者給使用者發送站內信;管理員給使用者發送站內信。二:點到面的訊息傳送。管理員給使用者(指定滿足某一
Time of Update: 2018-12-03
// 在web工程中讀取檔案 // 1、讀取檔案系統路徑檔案 * 一定要使用絕對路徑 String fileName = getServletContext().getRealPath("/index.jsp"); // 讀取WebRoot下 String fileName2 = getServletContext().getRealPath( "/WEB-INF/a.properties");//
Time of Update: 2018-12-03
不寫代碼已經很久了,原因是我現在已經不是專業的程式員了。我現在的工作是做系統安全維護,最近有些忙,沒有顧得上寫代碼,看技術文檔。想起曾經無數個夜晚爬在電腦跟前,研究程式到淩晨3點多,感覺現在的生活空虛了許多!想找個志同道合的兄弟一起寫個成品,還真難,哎! 我從專業轉業餘的原因就是不想寫公司裡那些瑣碎的重複的資料處理代碼,我不想受束縛,現在我抽業餘來寫代碼,想寫什麼代碼就寫什麼,這點我很高興。不過時常會因為沒寫代碼,沒有成就感而苦惱。
Time of Update: 2018-12-03
通過連結傳遞參數值是中文時,會有2個問題:(頁面採用UTF-8格式)1》中文亂碼,在action接值時轉碼即可(使用new String(str.getBytes("iso-8859-1"),"UTF-8"))2》傳遞的中文參數後面還有其他參數,此時頁面: 查詢 其中:查詢條件search_name=“張三”,後面nPageNo=1;當action接值時,request.getParameter("search_name")取到的值是:“張三的亂碼“nPageNo=1
Time of Update: 2018-12-03
accordion 是多個面板 展開和合并的效果:{ title: "工具箱", xtype: 'panel', region: 'west', width: 180, collapsible: true, split: true, margins: '0 0 5 5', layout: "accordion", defaultType: "panel",
Time of Update: 2018-12-03
問題:js代碼: $("document").ready(function() { $("#reset").click(function(){ // $("#name").val(""); $("#truename").val(""); $("#phone").val(""); $("#qq_msn").val(""); }); $("#submit").click(function() { var Chinese
Time of Update: 2018-12-03
log4j.properties配置: log4j.rootLogger=INFO, ROOT, file, JDBClog4j.appender.ROOT=org.apache.log4j.ConsoleAppenderlog4j.appender.ROOT.layout=org.apache.log4j.PatternLayoutlog4j.appender.ROOT.layout.ConversionPattern=%-5p %d{yyyy-MM-dd HH:mm:ss,SSS} %C{1
Time of Update: 2018-12-03
轉載 http://blog.csdn.net/aspwzmuma/article/details/6942359 jQuery 1.7 下載:http://code.jquery.com/jquery-1.7b1.jsjQuery 1.7 主要改進:1、新的事件.on() .off()舊的 API(jQuery 1.7之前)新的 API(jQuery 1.7)$(elems).bind(events, fn)$(elems).on(events,
Time of Update: 2018-12-03
1.Calendar 轉化 String //擷取目前時間的具體情況,如年,月,日,week,date,分,秒等 Calendar calendat = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");String dateStr = sdf.format(calendar.getTime()); 2.String 轉化Calendar String str="
Time of Update: 2018-12-03
hadoop cannot assign requested address:解決方案:namenode與JobTrack分開部署後,在namenode端啟動hadoop時報錯: Caused by: java.net.BindException: Cannot assign requested