包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
最满意答案
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 ...
-
如何使用Cloudformation从其他VPC EC2实例访问RDS(How I can access RDS from other VPC EC2 instance using Cloudformation)[2022-03-26]
有几件事。 您可能已创建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. ...
-
使用RDS实例快照创建Elastic Beanstalk环境(Create Elastic Beanstalk Environment using RDS Instance Snapshot)[2022-03-17]
这是创建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 ...
-
从EC2实例访问RDS(Access RDS from EC2 instance)[2022-07-24]
您必须修改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 ... -
EBS卷由RDS实例使用(EBS Volumes used by RDS instance)[2023-06-03]
您无法查看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 ...