V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  liprais  ›  全部回复第 141 页 / 共 163 页
回复总数  3256
1 ... 137  138  139  140  141  142  143  144  145  146 ... 163  
上个月去某高端团购公司谈了个 offer,临签字的时候 hr 还在压价,果断不去了
2016-05-24 22:30:24 +08:00
回复了 SlipStupig 创建的主题 求职 又遇到奇葩公司,互联网 APP 招聘还是不靠谱啊
大概一年之前做过一个 hive query parser ,前段时间可能简历被某大公司的某小 leader 看见了,被叫去聊了一下午具体实现,到最后不谈 offer 不说,还叫来一个小工程师鄙视了我一顿说我不会写 sql,简直呵呵
2016-05-23 21:41:58 +08:00
回复了 coolair 创建的主题 问与答 如何更有效的插入数据?
A 表全写进去,再写 B 表不就行了
2016-05-23 09:06:13 +08:00
回复了 ouafukqk 创建的主题 问与答 想出国读书,突然发现家里没有钱怎么办?
人生来就是不平等的,要学会在不平疼的条件下获取最大的利益
2016-05-20 06:44:36 +08:00
回复了 brando 创建的主题 Linux 日志服务器
@justin1989 一天索引 500m 免费
2016-05-19 22:49:52 +08:00
回复了 brando 创建的主题 Linux 日志服务器
推荐 splunk
去这家公司面过,人很 nice ,事情也挺有意思的,就是办公室旁边是个月嫂公司,楼道里的味道很感人
@liprais 想起来, id 叫 pt195
@realpg 好像是叫什么生活家的吧,感觉晒物还是晒的很猛的,其他没啥印象
2016-05-18 13:02:24 +08:00
回复了 openbaby 创建的主题 Linux 如何在单核 256M 内存下压榨出 nginx 的极限性能?
@openbaby 不是写了么,cached 226
这么鸡贼还有朋友愿意来也是服了
2016-05-08 20:55:29 +08:00
回复了 patrickstar 创建的主题 程序员 请教 数据可视化系统的 Web 解决方案
2016-04-18 19:28:43 +08:00
回复了 jiezhi 创建的主题 问与答 [求助]数据库操作
建个视图,把表名改成视图名
我公司用的 splunk
2016-04-11 15:11:00 +08:00
回复了 youchoudeyu 创建的主题 问与答 处理数据量较大的项目一般会用哪套语言和工具?
100w 自己装个 mysql 很随意的
2016-03-18 13:07:48 +08:00
回复了 anonymoustian 创建的主题 Hadoop Spark 读取 Hive 数据库的代码谁能提供一份, Java 实现的
@anonymoustian
YOUR_SPARK_HOME/conf
拷到这个目录下就行了
2016-03-18 11:02:26 +08:00
回复了 anonymoustian 创建的主题 Hadoop Spark 读取 Hive 数据库的代码谁能提供一份, Java 实现的
@anonymoustian
"Configuration of Hive is done by placing your hive-site.xml, core-site.xml (for security configuration), hdfs-site.xml (for HDFS configuration) file in conf/. Please note when running the query on a YARN cluster (cluster mode), the datanucleus jars under the lib directory and hive-site.xml under conf/ directory need to be available on the driver and all executors launched by the YARN cluster. The convenient way to do this is adding them through the --jars option and --file option of the spark-submit command."
把上述三个文件(hive-site.xml,core-site.xml,hdfs-site.xml)拷到 spark 的 conf 下面就行了
然后读写的时候代码如下

// sc is an existing JavaSparkContext.
HiveContext sqlContext = new org.apache.spark.sql.hive.HiveContext(sc.sc);


// Queries are expressed in HiveQL.
sqlContext.sql("select * from YOUR_HIVE_TABLE_NAME").collect();
2016-03-18 09:26:16 +08:00
回复了 anonymoustian 创建的主题 Hadoop Spark 读取 Hive 数据库的代码谁能提供一份, Java 实现的
@anonymoustian

SparkConf conf = new SparkConf().setAppName("JavaRFormulaExample");
JavaSparkContext jsc = new JavaSparkContext(conf);
HiveContext hiveContext = new HiveContext(jsc);
1 ... 137  138  139  140  141  142  143  144  145  146 ... 163  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3006 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 819ms · UTC 13:07 · PVG 21:07 · LAX 06:07 · JFK 09:07
Developed with CodeLauncher
♥ Do have faith in what you're doing.