[英]Azure Auto scaling Metricshubs Active Cloud Monitoring
I am using MetricsHub and I have an issue when upload my hosted services. 我正在使用MetricsHub,上传托管服务时遇到问题。
I get this following error : 我收到以下错误:
" The role's version of the Azure SDK is not supported To use MetricsHub, your Azure SDK must be 1.3 or newer. “不支持该角色的Azure SDK版本。要使用MetricsHub,您的Azure SDK必须为1.3或更高版本。
" ”
I don't understand why. 我不明白为什么。
I have made a Maven Project and created a web application in java. 我做了一个Maven项目并用Java创建了一个Web应用程序。
I already sent an email to support, but don't receive any response yet. 我已经发送了一封电子邮件来支持,但是还没有收到任何回复。
I tried to upgrade my sdk via eclipse but didn't work. 我试图通过Eclipse升级sdk,但是没有用。
and add a dependency into pom.xml but didn't work 并将依赖项添加到pom.xml中,但不起作用
<dependency>
<groupId>com.microsoft.windowsazure</groupId>
<artifactId>microsoft-windowsazure-api</artifactId>
<version>0.4.2</version>
</dependency>
Please Help me . 请帮我 。 Thank you 谢谢
Kenny 肯尼
I Found the solution to all my problems: 我找到了解决所有问题的方法:
For the issue with the SDK: 对于SDK的问题:
Because when you build the project, Eclipse will execute the .NET SDK 因为当您构建项目时,Eclipse将执行.NET SDK
Executing '"C:\\Program Files\\Microsoft SDKs\\Windows Azure.NET SDK\\2012-10\\bin\\cspack.exe" "C:\\Users\\XXX\\Documents\\CloudApp_Azure\\ServiceDefinition.csdef" /role:WorkerRole1;"C:\\Users\\XXX\\Documents\\CloudApp_Azure\\WorkerRole1\\approot" /out:"C:\\Users\\XXX\\Documents\\CloudApp_Azure\\deploy\\WindowsAzurePackage.cspkg"'... 正在执行'“ C:\\ Program Files \\ Microsoft SDKs \\ Windows Azure.NET SDK \\ 2012-10 \\ bin \\ cspack.exe”“ C:\\ Users \\ XXX \\ Documents \\ CloudApp_Azure \\ ServiceDefinition.csdef” / role:WorkerRole1;“ C:\\ Users \\ XXX \\ Documents \\ CloudApp_Azure \\ WorkerRole1 \\ approot“ /out:"C:\\Users\\XXX\\Documents\\CloudApp_Azure\\deploy\\WindowsAzurePackage.cspkg”'...
For the issue to enable Diagnostics in a project with Eclipse: 对于使用Eclipse在项目中启用诊断的问题:
<Import moduleName="Diagnostics"/>
<Setting name="AutoscalingStorage"/>
<Setting name="DataConnectionString"/>
<Setting name="AutoscalingStorage" value="DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=YYY"/>
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=YYY"/>
<Setting name="DataConnectionString" value="DefaultEndpointsProtocol=https;AccountName=XXX;AccountKey=YYY"/>
THANK YOU 谢谢
I think they ask you to install Windows Azure SDK for .NET instead of Java. 我认为他们要求您安装Windows Azure SDK for .NET而不是Java。 Try download/install .NET SDK from here http://www.windowsazure.com/en-us/downloads/ 尝试从此处http://www.windowsazure.com/zh-cn/downloads/下载/安装.NET SDK 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.