<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom miner, 'Commit Failed: unknown node class', no nodes.json file in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/custom-miner-commit-failed-unknown-node-class-no-nodes-json-file/m-p/323060#M95679</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed the same steps as in the ytexample guide.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/minemeld/wiki/How-To-Write-a-Simple-Miner" target="_blank" rel="noopener"&gt;https://github.com/PaloAltoNetworks/minemeld/wiki/How-To-Write-a-Simple-Miner&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Including putting my class in:&lt;/P&gt;
&lt;P&gt;/opt/minemeld/engine/0.9.68/lib/python2.7/site-packages/minemeld/ft&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, this directory doesnt exist:&lt;/P&gt;
&lt;P&gt;/opt/minemeld/engine/core/minemeld/ft&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im getting&amp;nbsp;'Commit Failed: unknown node class' when I try to commit the node which references the prototype created from the above article.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was no &lt;SPAN&gt;/opt/minemeld/engine/current/nodes.json file. Indeed, I searched all of the Ubuntu VM hosting Minemeld and couldnt find a nodes.json anywhere.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ive tried&amp;nbsp; copying this nodes.json and adding my node to the bottom and putting in &lt;SPAN&gt;/opt/minemeld/engine/current/&amp;nbsp; along with my class&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/minemeld-core/blob/master/nodes.json" target="_blank" rel="noopener"&gt;https://github.com/PaloAltoNetworks/minemeld-core/blob/master/nodes.json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is as per this message from a couple years ago:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/MineMeld-Discussions/Custom-miner-class-not-found-no-nodes-json-file/td-p/219607" target="_blank" rel="noopener"&gt;https://live.paloaltonetworks.com/t5/MineMeld-Discussions/Custom-miner-class-not-found-no-nodes-json-file/td-p/219607&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I still get the same error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody have any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luke&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2020 06:11:06 GMT</pubDate>
    <dc:creator>Luke_RBNZ</dc:creator>
    <dc:date>2020-04-16T06:11:06Z</dc:date>
    <item>
      <title>Custom miner, 'Commit Failed: unknown node class', no nodes.json file</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-miner-commit-failed-unknown-node-class-no-nodes-json-file/m-p/323060#M95679</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed the same steps as in the ytexample guide.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/minemeld/wiki/How-To-Write-a-Simple-Miner" target="_blank" rel="noopener"&gt;https://github.com/PaloAltoNetworks/minemeld/wiki/How-To-Write-a-Simple-Miner&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Including putting my class in:&lt;/P&gt;
&lt;P&gt;/opt/minemeld/engine/0.9.68/lib/python2.7/site-packages/minemeld/ft&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, this directory doesnt exist:&lt;/P&gt;
&lt;P&gt;/opt/minemeld/engine/core/minemeld/ft&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im getting&amp;nbsp;'Commit Failed: unknown node class' when I try to commit the node which references the prototype created from the above article.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was no &lt;SPAN&gt;/opt/minemeld/engine/current/nodes.json file. Indeed, I searched all of the Ubuntu VM hosting Minemeld and couldnt find a nodes.json anywhere.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ive tried&amp;nbsp; copying this nodes.json and adding my node to the bottom and putting in &lt;SPAN&gt;/opt/minemeld/engine/current/&amp;nbsp; along with my class&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/PaloAltoNetworks/minemeld-core/blob/master/nodes.json" target="_blank" rel="noopener"&gt;https://github.com/PaloAltoNetworks/minemeld-core/blob/master/nodes.json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which is as per this message from a couple years ago:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/MineMeld-Discussions/Custom-miner-class-not-found-no-nodes-json-file/td-p/219607" target="_blank" rel="noopener"&gt;https://live.paloaltonetworks.com/t5/MineMeld-Discussions/Custom-miner-class-not-found-no-nodes-json-file/td-p/219607&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, I still get the same error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody have any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Appreciate your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luke&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 06:11:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-miner-commit-failed-unknown-node-class-no-nodes-json-file/m-p/323060#M95679</guid>
      <dc:creator>Luke_RBNZ</dc:creator>
      <dc:date>2020-04-16T06:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom miner, 'Commit Failed: unknown node class', no nodes.json file</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/custom-miner-commit-failed-unknown-node-class-no-nodes-json-file/m-p/323260#M95680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-L7-Applicator lia-component-message-view-widget-author-username"&gt;&lt;A id="link_16" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/11678" target="_self"&gt;&lt;SPAN class=""&gt;@Lmori&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-L7-Applicator lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;I can see you have helped a few people out with the same issue. Ive followed your steps (as much as possible) and still have the same issue. Are you able to offer any insight?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the below, you can see I tried to follow what worked for somebody else here:&lt;BR /&gt;&lt;A href="https://live.paloaltonetworks.com/t5/MineMeld-Discussions/how-to-write-a-simple-miner-documentation/td-p/156793" target="_blank"&gt;https://live.paloaltonetworks.com/t5/MineMeld-Discussions/how-to-write-a-simple-miner-documentation/td-p/156793&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Not sure if its relevant, but Im running Minemeld on ubuntu 16.04 LTS.&lt;BR /&gt;&lt;BR /&gt;This is my /opt/minemeld/engine/current directory:&lt;BR /&gt;luke@ubuntu16:/opt/minemeld/engine/current$ ll&lt;BR /&gt;total 48&lt;BR /&gt;drwxr-xr-x 7 minemeld minemeld 4096 Apr 16 17:32 ./&lt;BR /&gt;drwxr-xr-x 3 minemeld minemeld 4096 Apr 10 11:14 ../&lt;BR /&gt;drwxr-xr-x 2 minemeld minemeld 4096 Apr 10 11:14 bin/&lt;BR /&gt;drwxr-xr-x 3 minemeld minemeld 4096 Apr 10 11:14 include/&lt;BR /&gt;drwxr-xr-x 3 minemeld minemeld 4096 Apr 10 11:14 lib/&lt;BR /&gt;-rw-r--r-- 1 minemeld minemeld 1254 Apr 10 11:14 LICENSE.rst&lt;BR /&gt;drwxr-xr-x 2 minemeld minemeld 4096 Apr 10 11:14 local/&lt;BR /&gt;-rw-r--r-- 1 root &amp;nbsp; &amp;nbsp; root &amp;nbsp; &amp;nbsp; 4781 Apr 16 17:32 nodes.json&lt;BR /&gt;-rw-r--r-- 1 minemeld minemeld &amp;nbsp;789 Apr 10 11:14 README.rst&lt;BR /&gt;drwxr-xr-x 3 minemeld minemeld 4096 Apr 10 11:14 share/&lt;BR /&gt;-rw-r--r-- 1 root &amp;nbsp; &amp;nbsp; root &amp;nbsp; &amp;nbsp; 2154 Apr 16 15:50 ytexample.py&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nodes.json (which didnt exist in /opt/minemeld/engine/current and so I had to import a copy from github)&lt;BR /&gt;&amp;nbsp;in the above directory includes this:&lt;BR /&gt;&lt;BR /&gt;"minemeld.ft.ytexample.YTExample": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "class": "minemeld.ft.ytexample:YTExample"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; },&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I then tried to run "sudo -u minemeld /opt/minemeld/engine/current/bin/pip install -e /opt/minemeled/engine/core/"&lt;BR /&gt;which produced this error, even with -H on sudo:&lt;BR /&gt;&lt;BR /&gt;DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at &lt;A href="https://pip.pypa.io/en/latest/development/release-process/#python-2-support" target="_blank"&gt;https://pip.pypa.io/en/latest/development/release-process/#python-2-support&lt;/A&gt;&lt;BR /&gt;WARNING: The directory '/home/luke/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.&lt;BR /&gt;ERROR: /opt/minemeled/engine/core/ is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have also put a copy of ytexample.py in what looks like the default directory for packages:&lt;BR /&gt;&lt;A href="mailto:luke@ubuntu16:/opt/minemeld/engine/current/lib/python2.7/site-packages/minemeld/ft$" target="_blank"&gt;luke@ubuntu16:/opt/minemeld/engine/current/lib/python2.7/site-packages/minemeld/ft$&lt;/A&gt; ll | grep le.py&lt;BR /&gt;-rw-r--r-- &amp;nbsp;1 minemeld minemeld &amp;nbsp;4704 Apr 10 11:14 google.py&lt;BR /&gt;-rw-r--r-- &amp;nbsp;1 minemeld minemeld &amp;nbsp;4886 Apr 10 11:14 google.pyc&lt;BR /&gt;-rw-r--r-- &amp;nbsp;1 minemeld minemeld 17277 Apr 10 11:14 table.py&lt;BR /&gt;-rw-r--r-- &amp;nbsp;1 minemeld minemeld 15122 Apr 10 11:14 table.pyc&lt;BR /&gt;-rw-rw-rw- &amp;nbsp;1 root &amp;nbsp; &amp;nbsp; root &amp;nbsp; &amp;nbsp; &amp;nbsp;2154 Apr 16 11:28 ytexample.py&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I very much appreciate any help you can give.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luke&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 19:53:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/custom-miner-commit-failed-unknown-node-class-no-nodes-json-file/m-p/323260#M95680</guid>
      <dc:creator>Luke_RBNZ</dc:creator>
      <dc:date>2020-04-16T19:53:33Z</dc:date>
    </item>
  </channel>
</rss>

