Ubuntu AWS MSK Kafka 不支持客户端 awscli?

Ubuntu client awscli unsupported by AWS MSK Kafka?

ubuntu 是否不支持通过 awscli 的 kafka 命令?我们是否必须使用 'Amazon Linux 2 AMI (HVM), SSD Volume Type' 才能与 MSK 进行任何 consumers/producers 交互?

当我们建立一个 Ubuntu 18.04 实例时它说

awscli is already the newest version (1.14.44-1ubuntu1).

aws kafka help显示:

ubuntu@ip-xxxxxxxxx:~/kafka_2.12-2.1.0$ aws kafka help usage: aws [options] [ ...] [parameters] To see help text, you can run:

aws help aws help aws help aws: error: argument command: Invalid choice, valid choices are:

acm | alexaforbusiness apigateway | application-autoscaling appstream | appsync athena | autoscaling autoscaling-plans | batch budgets
| ce cloud9 | clouddirectory cloudformation | cloudfront cloudhsm
| cloudhsmv2 cloudsearch | cloudsearchdomain cloudtrail | cloudwatch codebuild | codecommit codepipeline | codestar cognito-identity
| cognito-idp cognito-sync | comprehend cur | datapipeline dax
| devicefarm directconnect | discovery dms | ds dynamodb | dynamodbstreams ec2
| ecr ecs | efs elasticache
| elasticbeanstalk elastictranscoder | elb elbv2 | emr es
| events firehose | gamelift glacier
| glue greengrass | guardduty health
| iam importexport | inspector iot
| iot-data iot-jobs-data | kinesis kinesis-video-archived-media | kinesis-video-media kinesisanalytics | kinesisvideo kms
| lambda lex-models | lex-runtime lightsail | logs machinelearning
| marketplace-entitlement marketplacecommerceanalytics | mediaconvert medialive | mediapackage mediastore | mediastore-data meteringmarketplace | mgh mobile
| mq mturk | opsworks opsworkscm
| organizations pinpoint | polly pricing | rds redshift
| rekognition resource-groups | resourcegroupstaggingapi route53 | route53domains sagemaker | sagemaker-runtime sdb | serverlessrepo servicecatalog | servicediscovery ses | shield sms | snowball sns | sqs ssm
| stepfunctions storagegateway | sts support | swf transcribe | translate waf
| waf-regional workdocs | workmail workspaces | xray s3api
| s3 configure | deploy configservice
| opsworks-cm runtime.sagemaker | history help

您似乎使用 apt 安装了 awscli。这将为您提供 Ubuntu 维护者选择的版本,该版本将大大落后于当前版本。

要查看落后的程度,您可以 运行 aws --version。这是 recently-updated 安装的输出:

> aws --version
aws-cli/1.16.153 Python/3.6.7 Linux/4.15.0-1037-aws botocore/1.12.143

我建议运行宁apt remove awscli卸载来自Ubuntu的版本,并遵循these instructions to install the latest distribution from AWS (this installs it in /usr/local/bin and requires that you have sudo access; if you just want to install it for your user you can use pip as described here.