Category Archives: Error

[Solved] mongodb Install Error: mongod: error while loading shared libraries

Error:
mongodb install error: mongod: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory
Screeshots:

Solution:
1. Modify the /etc/profile file
Check the environment variables, however, no error was found
2. Modify the /etc/ld.so.conf file

1. After adding /usr/local/lib to /etc/ld.so.conf, I found that there is no liblzma.so.0 in this directory, only liblzma.so.5

2. At the command line, type sudo find / -name liblzma.so.0* -type f and find that liblzma.so.0 is not found

3. Type yum install xz-compat-libs on the command line to download liblzma.so.0

4. OK!

[Solved] AnacondaShell Start Error: createfile()error: 5

Solution 1:

There is also a problem when you do not execute as an administrator:

CondaHTTPError: HTTP 000 CONNECTION FAILED for url

reason:

5 = access denied. See net helpmsg 5. You cannot write to the system32 folder unless you are an administrator.

Solution:

Run Anaconda shell with administrator privileges:

If you still haven’t solved the condahttpererror problem, please refer to:
CONDA create failed to create the environment httperror
the ultimate solution to the condahttpererror problem when Anaconda created the environment

Solution 2:

1. Open registry: regedit

2. Found: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System

3. Modify the key value under this path: enablelua is set from 1 to 0

[Solved] HBase shell command Error: ERROR: connection closed

Problem description

During the big data storage experiment, an error is reported with the shell command of HBase. Connection closed

check the log and find that the error reporting service does not exist

Final solution

After a lot of troubleshooting, I finally found that it was a problem with the JDK version. I used version java-17.0.1 is too high. Finally, it was changed to jdk-8u331-linux-x64.tar.gz is solved

My versions are

hadoop 3.2. 2
hbase 2.3. 6
java 1.8. 0

The matching table of Hadoop, HBase and Java is attached


Solution steps

1 empty the temporary files of Hadoop

Close HBase and Hadoop processes first

stop-all.sh

View HDFS site XML

delete all the files in the two folders (the same is true for the name folder)

Re perform Hadoop formatting

2 change java to the specified version (don’t forget to change the Java folder name in the environment variable)

I use 1.8 0_ three hundred and thirty-one

java -version

3 restart the computer and start SSH, Hadoop and HBase

service ssh start
start-dfs.sh
start-hbase.sh

4. Enter HBase shell and find it successful

[Solved] “error_code“:500,“message“:“IO Error trying to forward REST request: java.net.ConnectException: Connection Refused

“error_code”:500,“message”:“IO Error trying to forward REST request: java.net.ConnectException: Connection refused”
An error is reported by executing the following command.
curl -u debezium:4a3s4d02234 http://debezium-001.optics.net:8083/connectors/mysql-optics-prod/restart -X POST
The error message is shown below.
{“error_code”:500, “message”: “IO Error trying to forward REST request: java. ConnectException: Connection refused”}
Solution: make sure the following parameters are set correctly.
rest.host.name=debezium-001.optics.netrest.port=8083

[Solved] Spark Error: ERROR StatusLogger No log4j2 configuration file found

I. introduction

When running Kafka related procedures of spark # project, it was warned that although it did not affect the operation, OCD looked very uncomfortable, so it was cleared immediately.

ERROR StatusLogger No log4j2 configuration file found. 
Using default configuration: logging only errors to the console.

II. Problem-solving

1. Add log4j2.xml

Level can be configured in loggers

<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{YYYY-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L - %msg%n" />
        </Console>

        <RollingFile name="RollingFile" filename="log/test.log"
                     filepattern="${logPath}/%d{YYYYMMddHHmmss}-fargo.log">
            <PatternLayout pattern="%d{YYYY-MM-dd HH:mm:ss} [%t] %-5p %c{1}:%L - %msg%n" />
            <Policies>
                <SizeBasedTriggeringPolicy size="10 MB" />
            </Policies>
            <DefaultRolloverStrategy max="20" />
        </RollingFile>

    </Appenders>
    <Loggers>
        <Root level="info">
            <AppenderRef ref="Console" />
            <AppenderRef ref="RollingFile" />
        </Root>
    </Loggers>
</Configuration>

2. Add location

Add it to the Src/main/Resources folder and execute MVN install

3. Display

Since the level in the file is set to info, you can see many related logs and modify them yourself

[Solved] error C4996: QString::SkipEmptyParts declaration has been rejected

Recently upgraded QT version from Qt5 12.9 upgrade to qt5.0 15.2. There are several errors in compilation, one of which is error c4996: qstring:: skipemptyparts. The declaration has been rejected.

It is found that Qt5 In versions after 14, QString::SkipEmptyParts has been moved to Qt::SkipEmptyParts.

After modifying QString::SkipEmptyParts to Qt::SkipEmptyParts in the code, the compilation passes and the problem is solved.

[Solved] Error creating bean with name ‘enableRedisKeyspaceNotificationsInitializer‘ defined in class path

Rookie log:

Error creating bean with name ‘enableRedisKeyspaceNotificationsInitializer’ defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration.class]

Analysis reason:

1. Redis can connect and access normally!

2. Forget to reconfigure the port when switching items!

3. The card is jammed and can be accessed normally after restarting the project

Solution:

1. Reconfigure redis link, test and complete

2. Restart the project

[Solved] Error: Waveform5.vwf.vt(30): near “1“: syntax error, unexpected INTEGER NUMBER, expecting ‘)‘ Erro


Error: Waveform5.vwf.vt(30): near “1”: syntax error, unexpected INTEGER NUMBER, expecting ‘)’
Error: e:/quartus/modelsim_ase/win32aloem/vlog failed.
Executing ONERROR command at macro ./deng01.do line 4

Solution:
1:Change the output port output to another name
2:The beginning of the input name cannot be a number

[Solved] Compile Error: AAPT: error: resource android:attr/lStar not found

Question

When using a third-party library, an error is reported during compilation

C:\Users\Administrator\.gradle\caches\transforms-2\files
2.1\b29f469d834fe6ac53c0c0e264e4ef98\core-1.7.0\res\values\values.xml
:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

reason

Compatibility problems have caused the project to be compiled. However, the core-1.7.0 version is used in the third party library and core-1.6.0 is used in the project.

Solution:

Add the following code above dependencies{} in build.gradle

configurations.all {
    resolutionStrategy {
        force 'androidx.core:core:1.6.0'
    }
}

dependencies {
}

[Solved] dbeaver Connect clickhouse Error: Unexpected driver error occurred while connecting to the database

Unexpected driver error occurred while connecting to the database when dbeaver is used to connect to the Clickhouse;

First:

The probability is because the Clickhouse configuration file/preprocessed_configs/config.xml file

<listen_host>::</listen_host>

In the annotation state, unlock the annotation.

Second:

In my personal case, I started the clikehouse image with the docker container

Before starting the container:

docker run -d --name ck-server --network=ck_net --ulimit nofile=262144:262144 --volume=$HOME/some_clickhouse_database:/var/lib/clickhouse yandex/clickhouse-server

Replace with:

docker run -d --name ck-server --ulimit nofile=262144:262144  -p 8123:8123 -p 9000:9000 -p 9009:9009 --volume=$HOME/Documents/ck2_database:/var/lib/clickhouse yandex/clickhouse-server

The test connection is successful.