modules
                                
                                
                                
                                    modules copied to clipboard
                            
                            
                            
                        Error verifying module
Hello! I followed your Readme, but when I try to start the master with the hook module TestHook, the execution fails with this message:
Error loading modules: Error verifying module 'org_apache_mesos_TestHook': Unknown module kind: Hook *** Error in `/home/my_home/mesos-0.24.0/build/src/.libs/lt-mesos-master': double free or corruption (fasttop): 0x0000000001fa9950 *** Aborted (core dumped)
Can you please help me understand where I am wrong? It seems that it doesn't recognize the Hook module kind! Thanks
Could you provide us the commandline that you used to launch the master? Also, if you don't mind, can you share the bits related to the module declaration part in you module sources (the stuff starting with "mesos::modules::Module<Hook> ....")?
That will help us get started on debugging this issue.
Best, Kapil
On Sun, Oct 25, 2015 at 7:00 AM, alepatacca [email protected] wrote:
Hello! I followed your Readme, but when I try to start the master with the hook module TestHook, the execution fails with this message:
Error loading modules: Error verifying module 'org_apache_mesos_TestHook': Unknown module kind: Hook *** Error in `/home/my_home/mesos-0.24.0/build/src/.libs/lt-mesos-master': double free or corruption (fasttop): 0x0000000001fa9950 *** Aborted (core dumped)
Can you please help me understand where I am wrong? It seems that it doesn't recognize the Hook module kind! Thanks
— Reply to this email directly or view it on GitHub https://github.com/mesos/modules/issues/8.
Hi! I'm launching the master with this command:
./bin/mesos-master.sh --ip=172.17.0.1 --hostname=172.17.0.1 --work_dir=/var/lib/mesos --quorum=1 --modules="file:///home/my_home/modules/hook/modules.json.in" --hooks=TestHook
The folder /modules is the one i cloned from github, and I left the source files unchanged, so the declaration of the hook module is the following:
mesos::modules::Module<Hook> org_apache_mesos_TestHook(
    MESOS_MODULE_API_VERSION,
    MESOS_VERSION,
    "Apache Mesos",
    "[email protected]",
    "Test Hook module.",
    NULL,
    createHook);
The only thing i changed is the path of the shared library in modules.json.in:
{
  "libraries": [
    {
      "file": "/home/my_home/modules/build/.libs/libtesthook.so",
      "modules": [
        {
          "name": "org_apache_mesos_TestHook"
        }
      ]
    }
  ]
}
                                    
                                    
                                    
                                
Instead of --hooks=TestHook, you need --hooks=org_apache_mesos_TestHook. Looks like we need to fix the error message as well.
Nope, I'm receiving the same error!
I also noticed that if I launch the master without --hooks=org_apache_mesos_TestHook I continue to receive the same error!
This doesn't make sense. For sanity check, can you replace mesos::modules::Module<Hook> with mesos::modules::Module<Isolator> and try again?
I replaced it and make fails with this error (and many others related):
../hook/test_hook_module.cpp:158:24: error: 'Isolator' was not declared in this scope
 mesos::modules::Module<Isolator> org_apache_mesos_TestHook(
                                    
                                    
                                    
                                
Aah, you need #include <mesos/module/isolator.hpp> as well.
On Tue, Oct 27, 2015 at 5:03 AM, Alessandro Patacca < [email protected]> wrote:
I replaced it and make fails with this error (and many others related):
../hook/test_hook_module.cpp:158:24: error: 'Isolator' was not declared in this scope mesos::modules::Module<Isolator> org_apache_mesos_TestHook(
— Reply to this email directly or view it on GitHub https://github.com/mesos/modules/issues/8#issuecomment-151419804.
Still not working. Same error.