@Manjukb mkdir should work with and without powershell, I just tested it on a windows 2012 vm.
Running make setup is usually verbose can you add the output of this command to this post?
What steps are your running to make your beats? I will try to reproduce the error.
cloned elastic beats under src\github\elastic\beats
and created a folder under src\github with my github username
now i tried to generate sample beat using this cmd python ``Traceback (most recent call last): File ``"C:\Users\ManjunathKB\go\src\github.com\elastic\beats\script\generate.py" project_name = raw_input("Beat Name [Examplebeat]: ") or ``"examplebeat" NameError: name 'raw_input' is not defined
So i generated a sample beat in linux pushed it to git and cloned under Manjukb folder
FIND: Parameter format not correct FIND: Parameter format not correct FIND: Parameter format not correct mkdir -p vendor/github.com/elastic/ The syntax of the command is incorrect. make: *** [copy-vendor] Error 1
make update
C:\Users\ManjunathKB\go\src\github.com\Manjukb\smartcenterBeat>make update FIND: Parameter format not correct FIND: Parameter format not correct FIND: Parameter format not correct process_begin: CreateProcess(NULL, pwd, ...) failed. process_begin: CreateProcess(NULL, pwd, ...) failed. process_begin: CreateProcess(NULL, pwd, ...) failed. process_begin: CreateProcess(NULL, pwd, ...) failed. process_begin: CreateProcess(NULL, pwd, ...) failed. 'test' is not recognized as an internal or external command, operable program or batch file. 'virtualenv' is not recognized as an internal or external command, operable program or batch file. make: *** [python-env] Error 1
A metricbeat compiler for example, you will have both the executable and a configuration file yml to which you specify what you want to collect as data.
As someone who has developed lots of Go code that targets Windows I can share my process.
I run all of the make commands from a *nix machine. This is for all of the things that are not actually Go, like generating the configuration files and other ancillary files. This is because the make targets are not all that portable in Beats. We're slowly addressing this by migrating build logic out of make an into Go so that it is much more portable and will run on Windows.
My daily development environment is not Windows. When it comes to developing Go code for Windows, I still write the actually code on my *nix machine where I have my development environment. But I do my testing on Windows. So for code that does not require native compilers (your not using cgo) you can cross-compile a Windows binary by setting environment variables when building GOOS=windows GOARCH=amd64 go build then copy that .exe to Windows. But more frequently I will run a Windows VM and mount my GOPATH inside the VM so that I can simply run go build and go test from Windows.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.