Tag Archives: Problem handling

[Solved] zookeeper Startup Error: already running as process

1. Problem description

Zookeeper has been able to start normally before, but an error is reported in a startup. Already running as process

2. Problem description

Enter the command JPS to check whether it is really started. It is found that it is not started (the process name of zookeeper is QuorumPeerMain)

This is usually caused by the machine abnormally closing the residual PID file in the cache directory (forced shutdown for the closing process, etc.)
just clean up the cache directory

3. Problem handling

Enter the file directory (this directory is the dataDir directory when setting zoo.cfg(cd /export/server/zookeeper-3.4.9/conf)):

(base) [ root@node2 zkdatas]# cd /export/server/apache-zookeeper-3.5.6-bin/zkdatas

(base) [ root@node2 zkdatas]# ll

Clean up cache files

(base) [root@node2 zkdatas]# rm -rf zookeeper_server.pid

Restart andyou can start normally

(base) [root@node2 apache-zookeeper-3.5.6-bin]# bin/zkServer.sh start

C++: fatal error: variant: No such file or directory

Question

When compiling with C + + 17, you will be prompted with “fatal error: variant: no such file or directory” error;

reason

STD:: variant is a feature of C + + 17. Although I compiled and installed gcc7.5.0, I still prompted this error
with the help of colleagues, the problem was solved because GCC did not switch to GCC 7.5.0;

apt-get install gcc-7
apt-get install gcc-7 g++-7
rm /usr/bin/g++
ln -s /usr/bin/g++-7 /usr/bin/g++

Test

1. C + + variables doesn’t like file directories

Accounting subject

[Solved] Excel plug in installation failed: unable to resolve the value of property ‘type’

[Description of the problem]
The third party to Excel plug-in installation package as Figure 1, I have not done Excel plug-in installation package, it is estimated that the callVSTOInstaller.exe

The installation failed with the following message

ERROR message ” The value of the property ‘type’ cannot be parsed. The error is: Could not load file or assembly ‘Microsoft.Office.BusinessApplications.Fba,Version=14.0.0.0,Culture=nutral, PublicKeyToken=71e9ce111e9429c’ or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Common Files\Microsoft Shared\VSTO\10.0\VSTOInstaller.exe.Config Line 10)

[Solution]
Fixed location plugin folder

 

    1. C:\Program Files (x86)\Common Files\Microsoft shared\VSTO\10.0 or C:\Program Files\Common Files\Microsoft shared\VSTO\10.0.

Rename VSTOInstaller.exe.config, such as VSTOInstaller.exe.config.old. and reinstall successfully.

[Run Result]
After installation plug-in directory.


Normal operation interface.

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of ty

Caused by: org.springframework.beans . factory.NoSuchBeanDefinitionException : No qualifying bean of type [ com.xxx.LanguageRecognizeService ] found for dependency [ com.xxxxxx.LanguageRecognizeService ]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@ org.springframework.beans . factory.annotation.Autowired (required=true)}

In general, this kind of error is that the definition of bean is not found and the XML file is not imported.

Another kind of error is no class found. There is an XML file, but the jar package is not loaded to classpath. POM has no dependency, or conflicts, or depends on a lower version.