microsoftarchive / data-pipeline

Exploring the problem of high-scale data ingestion on Azure
MIT License
6 stars 4 forks source link

Getting error when running provision assets.ps1 #46

Open niksacmsft opened 9 years ago

niksacmsft commented 9 years ago

I am trying to run the provision assets script to setup the solution locally. following this tutorial: https://github.com/mspnp/data-pipeline/blob/master/docs/GettingStarted.md

Step 2 fails with Error 2 below. The PowerShell script has the code to copy the latest settings.config so I ran that to fix this error. However while running the script, after successfully login into Azure, I get the below error (Error1) which asks me to build the solution. Now the solution is setup to run locally so it expects the mysettings.config file copied, but the powershell script has not done that yet so when I try to build the solution I get another (Error2). The issue really is the the CreateEventHub.ps1 checks for the latest ServiceBus.dll in the packages folder but since the solution is not build the packages have not been restored. To fix this issue, I currently use the Nuget BootStrapper (https://nuget.codeplex.com/releases/view/58939) to restore the packages as Step 2 (instead of building the solution) NuGet.exe restore Microsoft.Practices.DataPipeline.sln

Error1 VERBOSE: Account "XXXX" has been added. VERBOSE: Subscription "XXXX" is selected as the default subscription. Adding the [Microsoft.ServiceBus.dll] assembly to the script... N:\Projects\data-pipeline\src\Provisioning\CreateEventHub.ps1 : Could not add the Microsoft.ServiceBus.dll assembly to the script. Make sure you build the solution before running the provisioning script. At N:\Projects\data-pipeline\src\Provisioning\ProvisionAssets.ps1:97 char:1

Error 2 Severity Code Description Project File Line Error Before building this project, please copy mysettings-template.config to mysettings.config (under the "N:\Projects\data-pipeline\src\RunFromConsole" directory) and replace the placeholders in the copy with your configuration information. Cars.Simulator.ConsoleHost N:\Projects\data-pipeline\src\RunFromConsole\Cars.Simulator.ConsoleHost\Cars.Simulator.ConsoleHost.csproj 93

bennage commented 9 years ago

Thanks. We'll take a look.