使用solrcloud时400 Bad Request

时间:2015-07-31 03:01:54

标签: python amazon-web-services boto solrcloud

任何人都可以帮助我,我想使用此代码https://github.com/LucidWorks/solr-scale-tk在aws上创建一个solrcloud我尝试使用cmd构建[fab demo:demo1,n = 1]得到以下错误我得到了这个连接到amazon服务器后拉实例。

错误:boto.exception.EC2ResponseError:EC2ResponseError:400错误请求

感谢您的帮助

提前致谢



root@adminuser-VirtualBox:/opt/febric/solr-scale-tk# fab demo:demo1,n=1
Going to launch 1 new EC2 m3.medium instances using AMI ami-8d52b9e6
Setup Instance store BlockDeviceMapping: /dev/sdb -> ephemeral0
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/fabric/main.py", line 743, in main
    *args, **kwargs
  File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 427, in execute
    results['<local-only>'] = task.run(*args, **new_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fabric/tasks.py", line 174, in run
    return self.wrapped(*args, **kwargs)
  File "/opt/febric/solr-scale-tk/fabfile.py", line 1701, in demo
    ec2hosts = new_ec2_instances(cluster=demoCluster, n=n, instance_type=instance_type)
  File "/opt/febric/solr-scale-tk/fabfile.py", line 1163, in new_ec2_instances
    placement_group=placement_group)
  File "/usr/local/lib/python2.7/dist-packages/boto/ec2/connection.py", line 973, in run_instances
    verb='POST')
  File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 1208, in get_object
    raise self.ResponseError(response.status, response.reason, body)
boto.exception.EC2ResponseError: EC2ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value () for parameter groupId is invalid. The value cannot be empty</Message></Error></Errors><RequestID>ca03b6d4-ce0e-46d3-99e3-ccad4a43c4ff</RequestID></Response>
&#13;
&#13;
&#13;

1 个答案:

答案 0 :(得分:0)

您需要在您所在地区创建一个名为&#34; solr-scale-tk&#34; 的安全组,并打开所需的端口。请参阅this blog并按照设置亚马逊帐户部分中的说明操作。