bin/hive 提示"xxx Illegal Hadoop Version: Unknown (expected A.B.* format)"类似这样的问题,经过查看代码 public static String getMajorVersion() { String vers = Versi...
分类:
其他好文 时间:
2014-08-03 17:46:15
阅读次数:
837
http://rvm.io/rvm/installInstall RVM (development version):\curl -sSL https://get.rvm.io | bashWithout autolibs\curl -sSL https://get.rvm.io | bash -s...
分类:
其他好文 时间:
2014-08-03 17:42:15
阅读次数:
218
bool用于判断布尔值的结果是True还是False >>> bool("a") True >>> bool(3) True >>> bool("") False >>> bool(0) False Python中的elif类似于Java中的elseif >>> number...
分类:
编程语言 时间:
2014-08-03 17:41:25
阅读次数:
380
Android向下兼容的思路:使用高版本的API,在运行时判断真实运行平台的API版本,根据不同版本做不同的处理 关键类:Build.class里面定义了API版本相关信息 内部类:VERSION定义当前系统的版本信息,其中包含SDK版本信息Build.VERSION.SDK_INT可以获取到当前运...
分类:
移动开发 时间:
2014-08-03 17:33:05
阅读次数:
211
Give two versions of WA code:
Version 1: Runtime Error: Find the bug
class Solution {
public:
void find(const string& s, const unordered_set& dict, vector& res) {
int i, j, len = s.length();
...
分类:
其他好文 时间:
2014-08-03 15:21:27
阅读次数:
329
目的:将txt中的数据导入到数据库的一个表中
第一步:scott创建一个空表
create table family(id number(10),name varchar(20),sal number(20),total number(30));
第二步:创建txt数据文件:
vi /oracle/input.txt
1,clark,4000,50000
2,saber,4100,40...
分类:
数据库 时间:
2014-08-03 15:16:45
阅读次数:
236
spring 配置文件 <?xml?version="1.0"?encoding="UTF-8"?>
<beans?xmlns="http://www.springframework.org/schema/beans"
?????????????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
分类:
编程语言 时间:
2014-08-03 12:55:55
阅读次数:
244
本文出自:http://blog.csdn.net/svitter
题意分析:
Given m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers. It's clear
...
分类:
其他好文 时间:
2014-08-03 12:54:15
阅读次数:
912
Description
You have N integers, A1, A2, ... ,
AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number in a given interval. The other ...
分类:
其他好文 时间:
2014-08-03 12:53:25
阅读次数:
311
1.包装类除了Void和Character,其他六个全部都继承自Number。Number是一个抽象类。如下:
public abstract class Number implements java.io.Serializable {
public abstract int intValue();
public abstract long longValue();
pu...
分类:
编程语言 时间:
2014-08-03 12:51:35
阅读次数:
307