My Rabbit Menagement with operator has no 'ready, Unacknowledged, total' information, how can i add them? - rabbitmq

I use these data for my work, but I didn't find them (look at the pictures). could someone help me to display them?
rabbitmq-management pic rabbitmq-management
k8s pic k8s
version pic version
rabbitmq Official Website rabbitmq Official Website
info
I do not know if it is because of this problem, this means adding Config Maps to operator?

Related

Latest RabbitMQ release with exchange type x-modulus-hash?

I understand that the exchange type x-modulus-hash has given its place to x-consistent-hash. I am trying to deploy an app, the source code for which uses x-modulus-hash and I can't change it.
Which version of RabbitMQ should I revert back to? I am deploying the app using the stolon/rabbitmq-ha helm chart. It would be more useful to know the suitable version for this chart.
Alright, my bad! x-modulus-hash has not been discontinued. It is an exchange type that will be add when the sharding plugin is enabled using the following command:
rabbitmq-plugins enable rabbitmq_sharding

RabbitMQ on Kubernetes kubernetes.default.svc.cluster.local tls qlert

I am about to install RabbitMQ image 3.7.17-debian-9-r37 on a Kubernetes cluster 1.15 using Helm charts.
While starting the RabbitMQ container I see the following error:
Failed to get nodes from k8s -
{failed_connect, [{to_address, {"kubernetes.default.svc.cluster.local",443}},{inet,[inet],{tls_alert,{internal_error, "received CLIENT ALERT: Fatal - Internal Error - {unexpected_error...
It looks like something is wrong with TLS, but I am not sure what exactly.
Can anybody help understand the problem?
Thank you.
I have made some research and found this bug which is what you are currently experiencing.
Current fix versions are:
Fix Version/s:
21.3.8.5, 22.0.4
You can find Debian packages with fixed versions available here.
Please let me know if that helped.

Unable to add apache Nifi in ambari?

I am trying to add Apache Nifi in ambari but continuously failing with error Error occured during stack advisor command invocation:
Unable to delete directory /var/run/ambari-server/stack-recommendations/1.
There is a similar thread with the same error in hortonworks community, I have tried everything mentioned in that thread but unable to fix it. My sandbox is installed in vmware workstation 12 player. I also tried to create and remove directory manually but it is failing with the error invalid argument. Created a thread for this error also on stackexchange. Please help!!!
Here is a link to Hortonworks forum thread. And it seems like sandbox is just broken:
This is due to a docker issue in this 2.5 sandbox build. It will be
fixed in next revision of the sandbox.
There are also some workarounds described (like use older HDP 2.4 or establishing own cluser based on the HDP 2.5 docker image)
Updated sandbox arrived: http://hortonworks.com/downloads
Trust me, active member of community see your posts in multiple locations. In a good, no Big Brother ways :) but cross-posting is an old as world ... Well, you got it.
Did you see a notice for this service in Ambari? Telling it's been deprecated? Same note in the github. There's a good reason for that, it's now been implemented properly by the dev team and with many more features. I.e. all the action is there now.
I think I replied a similar question, though not sure it was yours, take a look in HCC.

Saving VisualVM information as data

Using VisaulVM, I'd like to obtain this as data, without image processing algorithms being applied... How can I do that? I think this won't come out of a snapshot.
I am not sure how VisualVM and jVisualVM vary, the naming is sure confusing, but I'm running the Oracle supplied one (Version 1.7.0_80 (Build 150109))
Thanks!
You can use Tracer plugin with various probes. Tracer can export data in CSV, HTML or XML.
All this information is available through JMX. That's how VisualVM gets the information and you can use the same technology to get it too. First install the VisualVM-MBeans plugin from the Tools menu. This will add another tab titled MBeans where you can see all the available data for your application. You will find the graphed data under java.lang.Memory and java.lang.OperationSystem.
If you're trying to check information for your own process, it's as simple as calling ManagementFactory.getOperatingSystemMXBean().getSystemLoadAverage() and ManagementFactory.getMemoryMXBean().getHeapMemoryUsage(). There are more, but these should get you started.
To get precise CPU usage see: Using OperatingSystemMXBean to get CPU usage
If you want to get information on another process, you'd need some more code. There is a complete answer on Accessing a remote MBean server but basically:
// replace host and port
// not tested, might not work
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://<addr>:<port>");
JMXConnector jmxConnector = JMXConnectorFactory.connect(url);
MBeanServerConnection connection = jmxConnector.getMBeanServerConnection();
OperatingSystemMXBean bean = ManagementFactory.getPlatformMXBean(connection, OperatingSystemMXBean.class);
bean.getSystemLoadAverage();
You will also have to start your Java process with exposed JMX as explained on How to activate JMX on my JVM for access with jconsole? but basically:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9010
-Dcom.sun.management.jmxremote.local.only=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
There is also a way to enumerate Java processes running on the local machine and even connect to processes that don't have JMX enabled (though you get less data). If that's what you're looking for, VisualVM Source Code will be a good place to start.
To answer your other question about naming:
VisualVM is opensource project hosted at visualvm.java.net and Java VisualVM is stable version of VisualVM with Oracle branding and other small changes. Java VisualVM is distributed in JDK. There is a table where you can find which VisualVM release is the basis for Java VisualVM in respective JDK update.

where is new_ssl?

From rabbitmq documents I know there is an new_ssl application.
I have installed erlang through macport command. after using command "port content erlang|grep new_ssl", I can't find it.
In www.erlang.org, new_ssl document, it says new_ssl is an module not an application.
But reading ssl.app, it also doesn't contain new_ssl module?
Is it a ghost?
new vs old ssl are two different implementations of SSL. Old ssl used libopenssl directly where as new ssl is build in erlang with only libcryto functions in C. As of the R15B release (dec 2011) of Erlang/OTP, the old_ssl implementation was entirerly dropped.