最近升级cdh版本,从4.5 升级到 5.0.0 beta-2 
但是升级后,发现/etc/alternatives 路径下的软链接还是只想旧的4.5 版本,而且hadoop环境也是沿用4.5 
的版本conf,导致hive不能正常使用,报错为hdfs 的版本不对。 后面使用strace工具查看,发现它...
                            
                            
                                分类:
其他好文   时间:
2014-06-07 02:44:21   
                                阅读次数:
248
                             
                    
                        
                            
                            
                                近来需要通过PL/SQL向Oracle中导数据,特此总结一下试例表:test字段:id;name;org;1、直接复制粘贴(当数据量不是特别大的时候)1)使用select 
* from test for update语句2)执行之后,点击查询结果窗口左上方的小锁,打开之后,便可在相应的字段下面进行复...
                            
                            
                                分类:
数据库   时间:
2014-06-07 02:38:21   
                                阅读次数:
271
                             
                    
                        
                            
                            
                                1,选取 
打开图片->点击选取工具->ctrl+c->ctrl+n->ctrl+v2,去除图片背景 
打开你要去除背景的图片->在图层面板中->双击图层把图层改为0层->用魔棒点击背景->然后点击delete键->最后将图片存储为png格式 
如果存为jpg他会默认添加背景3,改变图片上文字的颜色 打....
                            
                            
                                分类:
其他好文   时间:
2014-06-04 22:31:45   
                                阅读次数:
405
                             
                    
                        
                            
                            
                                updateupdate --force-update-db
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:57:49   
                                阅读次数:
234
                             
                    
                        
                            
                            
                                Given a sorted linked list, delete all nodes 
that have duplicate numbers, leaving onlydistinctnumbers from the original 
list.For example,Given1->2->3-...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:19:49   
                                阅读次数:
282
                             
                    
                        
                            
                            
                                Given a set ofnon-overlappingintervals, insert 
a new interval into the intervals (merge if necessary).You may assume that the 
intervals were initially...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:10:23   
                                阅读次数:
204
                             
                    
                        
                            
                            
                                Given a sorted array and a target value, return 
the index if the target is found. If not, return the index where it would be if 
it were inserted in or...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 20:09:47   
                                阅读次数:
266
                             
                    
                        
                            
                            
                                Given a sorted linked list, delete all 
duplicates such that each element appear onlyonce.For 
example,Given1->1->2, return1->2.Given1->1->2->3->3, 
retu...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 19:19:16   
                                阅读次数:
205
                             
                    
                        
                            
                            
                                1.复制新表结构及数据到新表create table 新表 select * from 
旧表2.只复制表结构到新表create table 新表 select * from 旧表 where 
1=23.复制旧表的数据到新表(假设两个表结构一样)insert into 新表 select * fr.....
                            
                            
                                分类:
数据库   时间:
2014-06-04 19:08:52   
                                阅读次数:
280
                             
                    
                        
                            
                            
                                动机: 想在Oracle中用一条SQL语句直接进行Insert/Update的操作。 说明: 
在进行SQL语句编写时,我们经常会遇到大量的同时进行Insert/Update的语句 
,也就是说当存在记录时,就更新(Update),不存在数据时,就插入(Insert)。 merge into...
                            
                            
                                分类:
其他好文   时间:
2014-05-29 16:27:58   
                                阅读次数:
281