I created a plugin, using the yarn kbn and the script plugin generator, and zipped it in the right structure.
I am now running a different kibana to test the installation, and it is successful-
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.