`
邢邢色色
  • 浏览: 232091 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
博客地址:http://www.oratea.net hbase-0.94.0有效,HBase权威指南上的介绍过时。   通过Import可以将Export的文件重新导回表中。 语法为: $ bin/hbase org.apache.hadoop.hbase.mapreduce.Import 下面我们将上次导出的表sunwg01的文件导入到表sunwg03中 导入命令为: hbase org.apache.hadoop.hbase.mapreduce.Import sunwg03 /test/sunwg01 查看表sunwg03的数据,已经完全导入了 hbase( ...
原文链接:http://www.tech126.com/tag/secondary-namenode/   Hadoop集群中,NameNode节点存储着HDFS上所有文件和目录的元数据信息 如果NameNode挂了,也就意味着整个Hadoop集群也就完了 所以,NameNode节点的备份很重要,可以从以下2个方面来备份NameNode节点 1. 在hdfs-site.xml中,配置多个name的dir到不同的磁盘分区上: <property>     <name>dfs.name.dir</name>     ...
原文链接:http://blog.falood.me/2012/01/hadoop.html   DateNode 测试(添加、删除、灾难) 测试前: master.hadoop:  248 secondaryname.hadoop:  106 slave104.hadoop:   104 slave110.hadoop:   110 slave250.hadoop:   250 (准备加入,不在集群内) 格式化DateNode: hadoop namenode -format 平衡DateNode: hadoop balancer ...
原文地址:http://heipark.iteye.com/blog/1074476          secondary namenoded 配置很容易被忽视,如果jps检查都正常,大家通常不会太关心,除非namenode发生问题的 时候,才会想起还有个secondary namenode,它的配置共两步:   集群配置文件conf/master中添加secondarynamenode的机器名 修改/添加 hdfs-site.xml中如下属性: <property> <name>dfs.http.address</name> ...
近来在 图片 存储服务器发现 CPU 居高不下,打开 Virtual VM 分析,发现是咱生成缩略图的功能太耗 CPU ,遂决定对此进行优化,降低计算时间。   首先,要降低计算时间,首先要使用高效的算法,计算机图形学咱不懂, ...
    公司有个业务需要优化,场景是手机客户端上传小文件到服务端,需要支持断点上传。现在直接用tomcat直接面对客户端进行网络IO,现在准备把网络IO这块剥离出来,彻底交给Nginx+Lua来处理。理由有如下几点:     1、应用服务器还是乖乖的待在后端做业务就好,底层的网络IO跟具体业务无关,这样使得项目的维护更方便,看起来更清晰。     2、对于底层IO操作,不是java的强项,特别是手机用户网速慢的场景,非WIFI用户网速不快,传输时间长,且数据量是间歇性的,时有时无,这种场景使用Nginx的epoll模型最合适不过了。     3、可以使用Nginx做负载均衡进行扩展。   ...
原始请求如下:   sudo curl -i http://marsoffset.goforandroid.com/GoSmsMarService/abc?a=116.397428&b=39.90923 [1] 8741 [jb-xccheng@usa-ip-12 ~]$ HTTP/1.1 500 Internal Server Error Server: nginx/1.2.0 Date: Wed, 20 Jun 2012 04:16:21 GMT Content-Type: text/html;charset=utf-8 Content-Length: 1180 ...
-- Example 31 --[[ Standard Libraries Lua has standard built-in libraries for common operations in math, string, table, input/output & operating system facilities. External Libraries Numerous other libraries have been created: sockets, XML, profiling, logging, unittest ...
-- Example 21 -- repeat until statement. a=0 repeat a=a+1 print(a) until a==5 ------ Output ------ 1 2 3 4 5 -- 例子 25 -- repeat until 语句 -- Example 22 -- for statement -- Numeric iteration form. -- Count from 1 to 4 by 1 for a=1,4 do io.write(a) end print() ...
-- Example 11 -- Numbers. -- Multiple assignment showing different number format. -- Two dots (..) are used to concatenate strings (or a -- string and a number). a,b,c,d,e = 1, 1.123. 1E9, -123, .0008 print("a="..a, "b="..b, "c="..c, "d="..d, "e=&q ...
-- Example 1 -- First Program. -- Classic hello program. print("hello") -------- Output ------ hello -- 例子 1 -- 第一个程序. -- 经典的 hello 程序 -- Example 2 -- Comments. -- Single line comments in Lua start with double hyphen. --[[ Multiple line co ...
Global site tag (gtag.js) - Google Analytics