question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing when using the Function Namespace Managers

See original GitHub issue

Failing when using the Function Namespace Managers. 2020-10-31T11:18:50.900+0800 ERROR main com.facebook.presto.server.PrestoServer No factory for function namespace manager mysql java.lang.IllegalStateException: No factory for function namespace manager mysql at com.google.common.base.Preconditions.checkState(Preconditions.java:588) at com.facebook.presto.metadata.FunctionManager.loadFunctionNamespaceManager(FunctionManager.java:166) at com.facebook.presto.metadata.StaticFunctionNamespaceStore.loadFunctionNamespaceManager(StaticFunctionNamespaceStore.java:72) at com.facebook.presto.metadata.StaticFunctionNamespaceStore.loadFunctionNamespaceManagers(StaticFunctionNamespaceStore.java:57) at com.facebook.presto.server.PrestoServer.run(PrestoServer.java:149) at com.facebook.presto.server.PrestoServer.main(PrestoServer.java:77)

The configuration file is: root@mdw:/opt/prestodb# cat etc/function-namespace/example.properties function-namespace-manager.name=mysql database-url=jdbc:mysql://localhost:3306/ function-namespaces-table-name=example_function_namespaces functions-table-name=example_sql_functions

Does anyone know why?

Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lyzGithubcommented, Dec 2, 2020

If you build and start presto locally, you can append the function-namespace-managers plugin into the plugin.bundles in the config.properties.

`plugin.bundles=\

…/presto-function-namespace-managers/pom.xml, `

The function namespace managers is ready to use, I just happened to use it a few weeks ago. The key point is making presto server load the plugin, otherwise we would see a failure of ‘No factory for function namespace manager mysql’ as you reported.

SO I get the newest code from the master branch and run the presto in the IDE and config an function namespace example file according to the office docs: image The the plugin.bundles have been added to the config.properties by default. And I got another error: image What can caused this problem?

1reaction
lyzGithubcommented, Nov 6, 2020

Or is there any wrong action I made when I wrote the configuration file or start the presto? And do anyone have a more detailed configuration guide to set up the Function Namespace Managers ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Function Namespace Managers — Presto 0.278 Documentation
Function namespace managers support storing and retrieving SQL functions, allowing the Presto engine to perform actions such as creating, altering, deleting  ...
Read more >
XmlNamespaceManager provided, but still get "Namespace ...
You need to use your XmlNamespaceManager as well: XmlNodeList nodeList = document.SelectNodes(query, manager);. Share. Share a link to this answer.
Read more >
Enable or Disable Referrals and Client Failback
To enable or disable referrals to a namespace server, use the following steps: In the DFS Management console tree, select the appropriate ...
Read more >
Unable to use a Series 7 Namespace in Cognos BI - IBM
CAM-AAA-0027 The function call to AS_GetNamespaceProperties2 for ADS with Series 7 failed. ... Compare the Namespace Name with access manager.
Read more >
Analysis of Failure to Delete a Kubernetes Cluster Namespace
You must delete the namespaces that are no longer in use. ... kube-controller-manager implements functions of most controllers in the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found