为改变Cloudera的IP地址在EC2 EBS实例 [英] Changing IP address for Cloudera in EC2 EBS instance

查看:466
本文介绍了为改变Cloudera的IP地址在EC2 EBS实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了一个 m1.large 例如Cloudera的。 我能够成功地安装它。 但一旦我停止实例,然后重新启动它第二天早上IP变化和Cloudera的仍然指向旧的IP,并没有一个服务运行。 我该如何解决这个问题,因为我不能让实例整天吗?

I have cloudera installed in one m1.large instance . I was able install it successfully. But once i stop the instance and start it again next morning the IP changes and cloudera still refers to old IP and none of the services run . How can i solve this problem because i can not keep instance up whole day?

由于其学术目的,我没有一个预算。

Since its for academic purpose and I don't have a budget .

推荐答案

这其实没有什么关系Cloudera的 - 更多的EC2实例的行为。您正在寻找该功能被称为弹性IP地址,这是你可以分配给你的EC2实例的静态IP地址。弹性IP的行为在EC2-经典和EC2-VPC一定的差异,指出<一href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html#VPC_EIP_EC2_Differences"相对=nofollow>此处。最值得注意的是你的将是关于弹性IP地址,我会得到很快的实例启动行为。

This doesn't really have anything to do with Cloudera -- more the behavior of EC2 Instances. The feature you're looking for is called an Elastic IP Address, which is a static IP address that you can assign to your EC2 instance. Elastic IP behavior has some differences in EC2-Classic and EC2-VPC, noted here. Most notably for you will be instance startup behavior regarding Elastic IP addresses, which I'll get to shortly.

您可以在这里找到弹性IP定价细节。请注意,虽然你的第一个弹性IP地址(与正在运行的实例相关联的是免费的),你会按小时为您的实例离线时间充电,你仍然有弹性IP地址。这个比率是$为0.005元不每小时按比例基础上运行的实例关联的弹性IP地址。所以不是很昂贵,但有一些费用需要注意的。

You can find details on Elastic IP pricing here. Note that while your first Elastic IP address (associated with a running instance is free), you will be charged by the hour for the time that your instance is offline and you still have the Elastic IP Address. This rate is "$0.005 per Elastic IP address not associated with a running instance per hour on a pro rata basis." So not very expensive, but there is some expense to be aware of.

href="http://stackoverflow.com/q/21609323/775544">最近的问题有几个关于如何分配的实例启动时的弹性IP地址好的答案另一个文档声称,如果一个弹性IP与停止实例相关联的小每小时收取费用。)

Another recent question has a couple of good answers on how to allocate the Elastic IP address on instance startup. In EC2-Classic you will need to script it or do it manually. In VPC the Elastic IP will remain associated with the instance. (I think you're still charged the fee, though, per this documentation claiming that a small hourly fee is charged if an Elastic IP is associated with a stopped instance.)

如果任何昂贵得惊人,我会建议寻找到 AWS命令行界面,以获得新的在启动和编写脚本的EC2实例的公共IP更改IP地址配置。

If any expensive is prohibitive, I would recommend looking into AWS Command Line Interface to get the new public IP of the EC2 instance on startup and writing a script to change that IP address in your configuration.

这篇关于为改变Cloudera的IP地址在EC2 EBS实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆