I executed the following command: cookiecutter $GOPATH/src/github.com/elastic/beats/generate/beat
First time, i got the following error: A valid repository for "$GOPATH/src/github.com/elastic/beats/generate/beat" could not be found in the following locations: $GOPATH/src/github.com/elastic/beats/generate/beat $GOPATH/go/src/github.com/elastic/beats/generate/beat
So I created a cookiecutter.json file in the "$GOPATH/src/github.com/elastic/beats/generate/beat" directory with few information (i.e. full_name, email, project_name...)
And I got another error: cookiecutter.exceptions.NonTemplatedInputDirException
This error is meaningless for me.
Why does cookiecutter do not prompt information as written in your documnetation?
May you test this procedure?
Version:
Cookiecutter 1.5.0 from /home/user/.local/lib/python2.7/site-packages (Python 2.7)
There is something wrong in the documentation. It should state that you have to check out branch 5.1, but I couldn't find it anymore Have to check what went wrong here.
There is one point I need to mention regarding the link that you have mentioned to generate new beat.
As mentioned by your team in the reference URL that we need to execute beat.py to create custom beat, but before executing the python script they need to make one modification based on the python version.
In helper.py, they are taking user input using raw_input method which has become obsolete if you are using Python3.x.
So, before proceeding beat generation, end user should check the helper.py and make necessary modifications based on Python version.
@newcoder99 Thanks for reporting this issue. Could you open a Github issue for that? Our docs state that Python 2.7 is required but we try to keep it compatible with 3.x as obviously lots of people are using 3.x. I hope we can find a fix here that works for 2.7 and 3.x
For the Windows environment, as you realised you can't use the Makefile commands. But the basic structure of a beat is mostly generated by python. What you require afterwards is to call the commands like go build manually. Best check out the commands which are executed by the Makefile and see if you can execute them manually on Windows.
It would be nice if we could offer the beat generator in the future also for Windows, so if you go forward with this it would be interesting to hear which roadblocks you hit.
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.