首页 \ 问答 \ 包org.apache.hadoop.ipc.protobuf为空(Package org.apache.hadoop.ipc.protobuf empty)

包org.apache.hadoop.ipc.protobuf为空(Package org.apache.hadoop.ipc.protobuf empty)

我刚刚获得最后一个稳定的Hadoop版本(2.4),并按照指令将其导入Eclipse。

但是,我有几个构建错误cannot be resolved to a type测试src文件夹中cannot be resolved to a type 。 举个例子:

import org.apache.hadoop.ipc.protobuf.TestProtos.EchoRequestProto;
import org.apache.hadoop.ipc.protobuf.TestProtos.EchoResponseProto;
import org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto;
import org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto;
import org.apache.hadoop.ipc.protobuf.TestRpcServiceProtos.TestProtobufRpcProto;
import org.apache.hadoop.ipc.protobuf.TestRpcServiceProtos.TestProtobufRpc2Proto;

Eclipse无法找到任何这些类,只是因为org.apache.hadoop.ipc.protobuf包是空的。 难道我做错了什么? 缺少一些配置步骤?


I just get the last stable Hadoop version (2.4) and followed this instruction to import it into Eclipse.

However, I've having several build errors of cannot be resolved to a type in the test src folder. As an example:

import org.apache.hadoop.ipc.protobuf.TestProtos.EchoRequestProto;
import org.apache.hadoop.ipc.protobuf.TestProtos.EchoResponseProto;
import org.apache.hadoop.ipc.protobuf.TestProtos.EmptyRequestProto;
import org.apache.hadoop.ipc.protobuf.TestProtos.EmptyResponseProto;
import org.apache.hadoop.ipc.protobuf.TestRpcServiceProtos.TestProtobufRpcProto;
import org.apache.hadoop.ipc.protobuf.TestRpcServiceProtos.TestProtobufRpc2Proto;

Eclipse cannot find any of these classes, simply because org.apache.hadoop.ipc.protobuf package is empty. Am I doing something wrong? Missing some configuration step?


原文:https://stackoverflow.com/questions/23139066
更新时间:2022-07-13 12:07

最满意答案

psql -d your_db_name -f /usr/share/postgresql/9.3/extension/postgis--2.1.1.sql

这是你引用的教程中的第5点。


with the recommendation of the postgresql irc, I used CREATE EXTENSION postgis SCHEMA postgis; creating the extension in the same schema as your app could also work

相关问答

更多
  • 在我看来,这就像文档中的拼写错误 - 有一个,应该有一个; 。 正在构造的查询是: ALTER TABLE tiger.loader_variables OWNER TO rds_superuser, 但应该是: ALTER TABLE tiger.loader_variables OWNER TO rds_superuser; 所以将SELECT行更改为: SELECT exec('ALTER TABLE ' || quote_ident(s.nspname) || '.' || quote_iden ...
  • RDS不允许您减少分配给数据库实例的存储量,只增加它。 要将数据库移动到更少的存储空间,您必须创建一个具有所需存储空间的新RDS实例,然后使用类似pg_dump / pg_restore的数据将数据从旧数据库移动到新数据库。 另请注意,具有1,000GB SSD存储的RDS实例的基本IOPS为3,000。 具有100GB SSD存储的RDS实例的基本IOPS为300,偶尔突发高达3,000。 RDS does not allow you to reduce the amount of storage all ...
  • 有几件事。 您可能已创建VPC对等,但您需要转到与RDS和EC2实例的子网关联的路由表,并确保它们可以通话。 即,如果您的EC2实例位于子网10.0.X.XX中,则需要在RDS子网的路由表中使用VPC对等路径(可能显示为pcx-xxxx,pc表示'对等连接'的路径为10.0.X.XX并且EC2实例将需要使用VPC对等EC2的类似规则。 然后,您的安全组将需要允许您提到的流量。 至于通过CloudFormation更新现有安全组,是的,这是可能的。 您将需要使用SecurityGroupIngress(入站) ...
  • 可以从RDS仪表板页面的事件中检查时间: 您可以通过AWS管理控制台检索RDS资源的事件,该管理控制台显示过去24小时内的事件 如果它发生得更早,您可以使用CLI来检索最多14天的事件 [xxx@xxxx ~]# aws rds describe-events --source-identifier test --source-type db-instance { "Events": [ { "Date": "2016-05-20T12:58:26.529Z" ...
  • 您需要使用例如pgAdmin手动创建数据库和sde登录,并将rds_superuser组角色授予sde登录。 还要在数据库中创建名为sde的模式,并使sde登录成为该模式的所有者。 然后,您可以使用sde登录在ArcCatalog中创建.sde数据库连接,重要的是,* .rds.amazonaws.com主机名。 最后,您可以使用此连接作为输入运行启用企业级地理数据库。 仅当使用* .rds.amazonaws.com主机名连接到数据库时,此选项才有效。 显然,ESRI使用主机名来确定相关数据库是否是RDS ...
  • 通过快照,您可以恢复到不同的/新的实例名称。 例如,创建database-one的快照database-one然后将快照恢复到不同的实例名称database-one-copy 。 我通过编程方式使用此方法在夜间计划中或根据需要使用Python AWS Boto3和此方法https://github.com/airsciences/aws-rds-persist创建开发数据库。 With a snapshot you can restore to a different/new instance name. ...
  • 这是创建AWS Beanstalk所涉及的步骤。 在此步骤中,选中“创建RDS”复选框。 当您转到RDS配置步骤时,在下拉列表中选择数据库的快照,然后继续操作直到结束。 This are the steps involved in creation of AWS Beanstalk. In this step select the "create RDS" check box. When you go to the RDS Configuration step select the snapshot of ...
  • psql -d your_db_name -f /usr/share/postgresql/9.3/extension/postgis--2.1.1.sql 这是你引用的教程中的第5点。 with the recommendation of the postgresql irc, I used CREATE EXTENSION postgis SCHEMA postgis; creating the extension in the same schema as your app could also w ...
  • 您必须修改RDS实例的安全组并允许访问EC2实例(通过添加其IP地址或安全组,TCP,端口3306)。 当然,您还需要端点,用户名和密码。 http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.RDSSecurityGroups.html You have to modify RDS instance's security group and allow access to EC2 instance (by adding its IP ...
  • 您无法查看RDS实例使用的EBS卷。 RDS是一项托管服务。 您将无法看到RDS数据库使用的EC2实例或EBS卷或S3存储桶。 You have no visibility into the EBS volumes used by your RDS instances. RDS is a managed service. You won't be able to see the EC2 instances or the EBS volumes or the S3 buckets used by your R ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。