摘要:
注意:仅需要如下这些jar包,否则启动时会出错 commons-lang3-3.2.jar commons-logging-1.1.3.jarcommons-logging-api-1.1.jarfreemarker-2.3.19.jarjavassist-3.11.0.GA.jarognl-3.0 阅读全文
摘要:
Dynamic Web Module 3.1 requires Java 1.7 or newer http://crunchify.com/how-to-solve-dynamic-web-module-3-1-requires-java-1-7-or-newer-in-eclipse/ No m 阅读全文
摘要:
文/新浪财经意见领袖(微信公众号kopleader)机构专栏 黑天鹅图书出版 《少做一点不会死》 作者 里奥·巴伯塔 如果你能许下承诺,少做无关紧要的事,挤出时间做自己爱做的事,你就能拥有自己想要的生活。你要做的,就是为自己的简短清单许下承诺。 当你看到别人在朋友圈里晒自己在做喜欢的事的时候,你是否 阅读全文
摘要:
#import <Foundation/Foundation.h> @interface Shape : NSObject { CGFloat area; } -(void)printArea; -(void)calculateArea; @end @implementation Shape -(v 阅读全文
摘要:
October 27, 2015· bySrinivas· inMongoDBMongoDB replica sets provide a number of features that most MongoDB users are going to want to leverage. Best o... 阅读全文
摘要:
http://finance.sina.com.cn/stock/stocklearnclass/20150914/081523237049.shtml 阅读全文
摘要:
I had similar problem which was resolved by taking two steps :1A. DELETE THE REGISTRY KEY :32-bit machine>[HKEY_CURRENT_USER\Software\Microsoft\Window... 阅读全文
摘要:
To configure Hive for use with HiveServer2, include the following configuration properties in the .../hive-site.xmlconfiguration file. hive.support.c... 阅读全文
摘要:
a. 由于MapReduce的shuffle过程需写磁盘,比较影响性能;而Spark利用RDD技术,计算在内存中进行.b. MapReduce计算框架(API)比较局限, 而Spark则是具备灵活性的并行计算框架.c. 再说说Spark API方面- Scala: Scalable Language... 阅读全文
摘要:
HIVEMap Join is nothing but the extended version of Hash Join of SQL Server - just extending Hash Join into Distributed System.SMB(Sort Merge Bucket)J... 阅读全文
摘要:
本文转自 http://www.cnblogs.com/kerrycode/archive/2012/12/14/2818421.html1:首先检查网络是否能ping通2:检查TNS配置(TNS配置也没有问题)GSP =(DESCRIPTION =(ADDRESS =(PROTOCOL = TCP... 阅读全文
摘要:
数据文件内容id=123,name=stevenid=55,name=ray期望输出格式123 steven55 ray1. 创建表, 用正则表达式的形式指定格式create table test1(id int, name string) row format serde 'org... 阅读全文
摘要:
数据文件内容TEST DATA HEREGood to Go我们准备写一个函数,把所有字符变为小写.1.开发UDFpackage MyTestPackage;import org.apache.hadoop.hive.ql.exec.UDF;import org.apache.hadoop.io.T... 阅读全文
摘要:
数据文件内容steven:100;steven:90;steven:99^567^22ray:90;ray:98^456^30Tom:81^222^33期望最终放到数据库的数据格式如下:steven 100 567 22steven 90 567 22st... 阅读全文
摘要:
世界不会在意你的自尊,人们看的只是你的成就。在你没有成就以前,切勿过分强调自尊。 阅读全文
摘要:
在线python, perl, javascript, Lisp, Ruby等 http://melpon.org/wandbox/正则表达式在线测试工具 http://tools.jb51.net/tools/regex.asphttp://tool.oschina.net/regex在线unix... 阅读全文
摘要:
我们的输入文件 hello0, 内容如下:xiaowang 28 shanghai@_@zhangsan 38 beijing@_@someone 100 unknown逻辑上有3条记录, 它们以@_@分隔. 我们将分别用旧版MapReduce API 和新版MapReduce API实现自定义Te... 阅读全文
摘要:
我们的输入文件 hello0, 内容如下:xiaowang 28 shanghai@_@zhangsan 38 beijing@_@someone 100 unknown逻辑上有3条记录, 它们以@_@分隔.我们看看数据是如何被map读取的...1. 默认配置 /* New API */ ... 阅读全文
摘要:
本文转自 http://www.cnblogs.com/npumenglei/....先创建两个文本文件, 作为我们例子的输入: File 1 内容:My name is TonyMy company is pivotalFile 2 内容:My name is LisaMy... 阅读全文
摘要:
最近应项目需要, 对MapReduce进行了一些实验测试, 记录如下.测试环境3台VM虚拟机, 都是Ubuntu系统, 1G内存, Hadoop 2.6.01台 NameNode (Master)3台 DataNode (Slave)其中Master和2台Slave (Slave2, Slave3)... 阅读全文
摘要:
14 down vote It's the other way round. Number of mappers is decided based on the number of splits. In reality it is the job of InputFormat, which you ... 阅读全文
摘要:
关系型数据库系统以二维表的形式呈现数据,比如下面的员工表RowIdEmpIdLastnameFirstnameSalary00110SmithJoe4000000212JonesMary5000000311JohnsonCathy4400000422JonesBob55000上面的格式仅仅存在于理论... 阅读全文
摘要:
While data integrity is managed very effectively within a single database with row locking, deadlock detection, and roll-back features, distributed da... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Thre... 阅读全文
摘要:
Answer:I understand the IEnumerator/IEnumerable methods and properties and also how they are interrelated. But I fail to understand from the foreach loop perspective. Say for example, if I say the following line of code, how does the compiler look at foreach loop and break it down to IEnumerable/IEn 阅读全文
摘要:
The following string “_x003C_none_x003E_” may be included in the output file. If you are receiving this error or other strange flat file results when outputting xml results; it may be due to the values you have set in the flat file connection properties. 1. Right Click on the connection manager icon 阅读全文
摘要:
一、为什么Control类提供了Invoke和BeginInvoke机制?关于这个问题的最主要的原因已经是dotnet程序员众所周知的,我在此费点笔墨再次记录到自己的日志,以便日后提醒一下自己。1、windows程序消息机制Windows GUI程序是基于消息机制的,有个主线程维护着一个消息泵。这个消息泵让windows程序生生不息。 Windows GUI程序的消息循环 Windows程序有个消息队列,窗体上的所有消息是这个队列里面消息的最主要来源。这里的while循环使用了GetMessage()这个方法,这是个阻塞方法,也就是队列为空时方法就会被阻塞,从而这个while循环停止运动,这避 阅读全文
摘要:
Event Aggregator -- 彻底解耦了事件的定义与行为。一般的事件使用中,我们至少需要引用到定义事件的类。比如,class A{//define event}class B{//some behaviour}class ControlClass{ Aa = new A();a.EventX += B.Method1;}使用了EventAggregator后,我们在事件定义的时候Publish,仅需要在其它任何需要的地方Subscribe! 阅读全文
摘要:
select*from[Catalog]wherename='ReportName'--ScheduleID=SSISjobIDselect*fromreportschedulewherereportidin(selectItemIDfrom[Catalog]wherename='ReportName')select*fromsubscriptionswhereSubscriptionIDin(selectSubscriptionIDfromreportschedulewherereportidin(selectItemIDfrom[Catalog]wheren 阅读全文
摘要:
Non-clustered The data is present in random order, but the logical ordering is specified by the index. The data rows may be randomly spread throughout the table. The non-clustered index tree contains the index keys in sorted order, with the leaf level of the index containing the pointer to the page 阅读全文