简体   繁体   English

通过node.js命令行界面报告创建azure hdinsight“无法调用未定义的方法'filter'”

[英]Create azure hdinsight by node.js command line interface report “Cannot call method 'filter' of undefined”

I'v created a hdinsight cluster config and then create cluster by command 'azure hdinsight cluster create --config myhdinsightconf', but reported 我创建了hdinsight集群配置,然后通过命令“ azure hdinsight cluster create --config myhdinsightconf”创建集群,但是报告了

info: Executing command hdinsight cluster create 信息:执行命令hdinsight集群创建
/error: Cannot call method 'filter' of undefined /错误:无法调用未定义的方法“过滤器”
info: Error information has been recorded to azure.err info:错误信息已记录到azure.err
error: hdinsight cluster create command failed 错误:hdinsight群集创建命令失败

azure.err files azure.err文件

Wed Mar 05 2014 10:47:34 GMT+0800 (CST):
    { [TypeError: Cannot call method 'filter' of undefined]
        stack: [Getter/Setter],
       __frame: 
       { name: 'getCluster__2',
            line: 176,
            file: '/usr/local/lib/node_modules/azure-cli/lib/commands/hdinsight._js',
            prev: 
                { name: 'createClusterCommand__1',
                line: 253,
                file: '/usr/local/lib/node_modules/azure-cli/lib/commands/hdinsight._js',
                prev: undefined,
                active: false,
                offset: 41,
                col: 19 },
            active: true,
            offset: 1,
            col: 17 },
        rawStack: [Getter] }
    TypeError: Cannot call method 'filter' of undefined
        at ___ (/usr/local/lib/node_modules/azure-cli/lib/commands/hdinsight._js:183:40)
        at ___ (/usr/local/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:85:13)
        at ___ (/usr/local/lib/node_modules/azure-cli/lib/commands/hdinsight._js:196:16)
        at ___ (/usr/local/lib/node_modules/azure-cli/node_modules/streamline/lib/callbacks/runtime.js:85:13)
        at finalCallback (/usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/hdinsight/hdinsightservice.js:403:7)
        at /usr/local/lib/node_modules/azure-cli/node_modules/azure/node_modules/azure-common/lib/services/serviceclient.js:693:11
        at /usr/local/lib/node_modules/azure-cli/node_modules/azure/lib/services/hdinsight/hdinsightservice.js:406:5
        at Request.processResponseCallback [as _callback] (/usr/local/lib/node_modules/azure-cli/node_modules/azure/node_modules/azure-common/lib/services/serviceclient.js:219:13)
        at Request.self.callback (/usr/local/lib/node_modules/azure-cli/node_modules/azure/node_modules/request/request.js:129:22)
        at Request.EventEmitter.emit (events.js:98:17)
        at getCluster__2 (/usr/local/lib/node_modules/azure-cli/lib/commands/hdinsight._js:177:17)
        at createClusterCommand__1 (/usr/local/lib/node_modules/azure-cli/lib/commands/hdinsight._js:294:19)

node -v v0.10.26 节点-v v0.10.26

Same error is reported when create without config file. 没有配置文件创建时报告相同的错误。 Any idea? 任何想法?

The error report is not precise totally. 错误报告并不完全准确。 I tried on management portal, hdinsight is not available for the zone of my config, and there are at least 10 character password length limit. 我在管理门户网站上尝试过,hdinsight无法用于我的配置区域,并且密码长度限制至少为10个字符。 The error was gone when I fixed these problems. 当我解决这些问题时,错误消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM