草庐IT

set_state

全部标签

java - 在 HBase 中存储和更新 Set 的最佳方式是什么?

情况是这样的:我创建了一个SetWritable类,基本上是实现Writable接口(interface)的java.util.Set的包装器。我有一个包含一个列族和一列的HBase表,该列的值是序列化的SetWritable对象。现在,如果我想向集合中添加一个元素,我需要从HBase中提取行,将其反序列化为SetWritable,添加我的元素,序列化SetWritable,然后将其推回HBase。所以这意味着我的映射器和HBase之间有很多很多的通信。鉴于我正在处理大量数据,这可能会降低我的表现。我想做的只是将新元素发送到HBase,并在HBase服务器上有一些代码反序列化SetWr

Hadoop Map-Reduce : what you can tell about a state: mappers: 80%, reducer :20%

在采访中有人问我一个问题:关于状态,你能说些什么:映射器:80%,缩减器:20%?我的理解是,进入那种状态是不可能的。因为在reducer开始工作之前,所有映射器都应该完成运行:收集所有键值对并按键分组。我说的对吗? 最佳答案 Reducers为20%意味着后台线程已开始将数据从mapper输出位置复制到reducer输入位置。这就是为什么在映射器输出达到100%之前,reducers进度显示为20%。 关于HadoopMap-Reduce:whatyoucantellaboutasta

java - Pydoop Java home not set 安装问题

当我回显$JAVA_HOME时,我得到了Java的路径。Hadoop也在运行,但是pydoop安装由于这个错误而失败。Traceback(mostrecentcalllast):File"setup.py",line54,inraiseRuntimeError("javahomenotfound,trysettingJAVA_HOME")RuntimeError:javahomenotfound,trysettingJAVA_HOME我使用sudopythonsetup.pyinstall--skip-build运行设置命令。作为非root用户收到此错误运行安装运行安装库创建/usr/

hadoop - org.apache.hadoop.hdfs.server.common.InconsistentFSStateException : Directory/tmp/hadoop/dfs/name is in an inconsistent state

我正在运行单节点。NameNode总是在启动集群时开始失败。我收到以下错误。2013-06-2910:37:29,968FATALorg.apache.hadoop.hdfs.server.namenode.NameNode:Exceptioninnamenodejoinorg.apache.hadoop.hdfs.server.common.InconsistentFSStateException:Directory/tmp/hadoop/dfs/nameisinaninconsistentstate:storagedirectorydoesnotexistorisnotaccess

hadoop - WARN mapred.JobClient : No job jar file set. 可能找不到用户类

我的代码是importjava.io.IOException;importjava.util.*;importorg.apache.hadoop.fs.Path;importorg.apache.hadoop.conf.*;importorg.apache.hadoop.io.*;importorg.apache.hadoop.mapreduce.*;importorg.apache.hadoop.mapreduce.lib.input.FileInputFormat;importorg.apache.hadoop.mapreduce.lib.input.TextInputFormat

hadoop - 创建外部表时Hive报错(state=08S01,code=1)

我试图在Hive中创建一个外部表,但不断收到以下错误:createexternaltablefoobar(aSTRING,bSTRING)rowformatdelimitedfieldsterminatedby"\t"storedastextfilelocation"/tmp/hive_test_1375711405.45852.txt";Error:Errorwhileprocessingstatement:FAILED:ExecutionError,returncode1fromorg.apache.hadoop.hive.ql.exec.DDLTask(state=08S01,c

hadoop - hdfs数据目录 "is in an inconsistent state: is incompatible with others."

对不起,这让我很紧张......就在我开始通过配置单元加载表时,我开始收到此错误。亲爱的老谷歌也帮不上忙。我的情况-单节点设置。名称节点正常工作。datanode启动失败并显示此消息-ERRORdatanode.DataNode:org.apache.hadoop.hdfs.server.common.InconsistentFSStateException:Directory/xxxxxx/hadoop/hdfs-data-dirisinaninconsistentstate:isincompatiblewithothers.我已经尝试过重新格式化我的名称节点,但没有用。此外,我试图

java - HBASE 错误 : Failed setting up proxy interface org. apache.hadoop.hbase.ipc.HRegionInterface

我目前正在尝试处理HDFS和HBASE。Hadoop和HBASE已正确安装在一台机器上,当托管在同一台机器上时,我的应用程序运行完美。但是在另一台机器上托管时。第一次访问HBASE时,我收到一条错误消息:org.apache.catalina.core.StandardWrapperValveinvokeSEVERE:Servlet.service()forservlet[sitepulsewebsite]incontextwithpath[/SitePulseWeb]threwexception[Requestprocessingfailed;nestedexceptionisjav

mysql - 如何解决mysql警告: "InnoDB: page_cleaner: 1000ms intended loop took XXX ms. The settings might not be optimal "?

我在服务器上运行了一个mysqlimportmysqldummyctrad这些正常消息/状态是否“等待表刷新”以及消息InnoDB:page_cleaner:1000ms预期循环花费了4013ms。设置可能不是最佳的mysql日志内容2016-12-13T10:51:39.909382Z0[Note]InnoDB:page_cleaner:1000msintendedlooptook4013ms.Thesettingsmightnotbeoptimal.(flushed=1438andevicted=0,duringthetime.)2016-12-13T10:53:01.170388

mysql - 如何解决mysql警告: "InnoDB: page_cleaner: 1000ms intended loop took XXX ms. The settings might not be optimal "?

我在服务器上运行了一个mysqlimportmysqldummyctrad这些正常消息/状态是否“等待表刷新”以及消息InnoDB:page_cleaner:1000ms预期循环花费了4013ms。设置可能不是最佳的mysql日志内容2016-12-13T10:51:39.909382Z0[Note]InnoDB:page_cleaner:1000msintendedlooptook4013ms.Thesettingsmightnotbeoptimal.(flushed=1438andevicted=0,duringthetime.)2016-12-13T10:53:01.170388