Spark shell startup error, error: not found: value spark (low level solved)

Check the reason for the error: java.net.BindException : Cannot assign requested address: Service ‘sparkDriver’ failed after 16 retries (starting from 0)! Consider explicitly setting the appropriate port for the service ‘sparkDriver’ (for example spark.ui.port for SparkUI) to an available port or increasing spark.port.maxRetries .

When I wipe it, I can’t find the corresponding host. Then I go to see if there is something wrong with the mapping of the hosts file,
sure enough.
Previously, in order to access the Internet, IP was changed to DHCP (dynamic), so the current IP and hosts files are inconsistent.

After changing the hosts file. 666, you can go in again.

macOS Install Homebrew Error LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

Installation

curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"

report errors

==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1` exited with 128.
Error: Failure while executing; `/usr/local/bin/brew tap homebrew/core` exited with 1.

solve:

// Execute the following command to replace the image with the CAS image.
git clone git://mirrors.ustc.edu.cn/homebrew-core.git/ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core --depth=1

// Set the mirror address of homebrew-core to the CAS domestic mirror as well

cd "$(brew --repo)" 

git remote set-url origin https://mirrors.ustc.edu.cn/brew.git

cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" 

git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

// UPGRADE
brew update

// USE
brew install node

Android Error:Internal error:org.gradle.tooling.BuildException: Could not execute build…

Android import project compilation error:

Error:Internal error : org.gradle.tooling .BuildException: Could not execute build using Gradle distribution ‘ https://services.gradle.org/distributions/gradle-4.10.1-all.zip ‘.

Problem points:

The version does not match. An error is reported in the figure below

Solution:

Modify its version (just change it to be the same as other local projects)

https\://services.gradle.org/distributions/gradle-4.4-all.zip

Python3 Fatal error in launcher: Unable to create process using ‘”‘

Under windows, python2 and python3 coexist. When installing pyGame or other third-party libraries with PIP3, an error is reported as follows:

Fatal error in launcher: Unable to create process using '"'

resolvent:

C:\Users\Administrator>python3 -m pip install pygame

Reason: it needs to be used like this in Windows environment. I don’t understand the reason, and the Python – M instruction can’t find the exact meaning

There are also hints that it is a problem with the PIP version. Just update the pip to the latest version. The update command is “Python – M PIP install – upgrade PIP”.

How to Solve Error: The requested URL returned error: 401 Unauthorized while accessing

Problem
Reported error: error: The requested URL returned error: 401 Unauthorized while accessing
git version: 1.7.1

Solution 1: Specify the user
git clone https://github.com/org/project.git
Replace it with
git clone https://[email protected]/org/project.git
or
git clone https://username:[email protected]/org/project.git
If it appears in push or pull, you need to change the remote address
git remote-set-url origin https://[email protected]/org/project.git

Solution 2: Remove authentication
git config -global http.sslverify false

Solution 3: (recommended)
Upgrade git to version ≥ 1.7.10

Solution 4
Add ssh secret key

error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory

Error while loading shared libraries: lib *. So: cannot open shared object file: no such file or directory

Error while loading shared libraries: lib *. So: cannot open shared object file: no such file or directory

————————————————————————————————————————————————-

First of all, this topic is a bit long, but it well reflects the problems encountered.

In the article “how to generate two-dimensional code with C code”, Xiaobian also shows you how to compile QRcode correctly_ Test program, run the error problem. Let’s talk about it this time.

At that time, the terminal manual./running program error prompt./QRcode_ test: error while loading shared libraries: libzint.so .2.4: cannot open shared object file: No such file or directory

When running the program, you can’t find the information you need libzint.so Dynamic library. As we all know, the biggest difference between the dynamic library and the static library is that the static library is a static link, that is, the implementation of the static library is embedded into the program when the executable file is produced. Once the compilation is successful, the static library will have the value of existence. Even if the static library does not exist, the executable program can run; but the dynamic library is not the same It follows the dynamic link, that is to say, when compiling, you need to specify the path to find the so file link to compile, and when running, you also need to specify the corresponding path to find it. If it is running, the executable program will first go to the default system lib directory to find the so. If it cannot find it, it will report an error: error while loading shared libraries.

In the above paragraph, we talk about how to find the so file when the executable program is running, which is more general

The search paths of dynamic database are as follows

1. The dynamic library search path specified when compiling the object code;

2. Environment variable LD_ LIBRARY_ Path specified dynamic library search path

3. Configuration file/etc/ ld.so.conf The dynamic library search path specified in;

4. The default dynamic library search path is/lib/usr/lib.

Back to the problem of error while loading shared libraries when an executable program is running, in the article “how to generate two-dimensional code with C code”, we also talk about how to avoid this error and run the program. We use the “2. Environment variable LD” mentioned above_ LIBRARY_ Path specified dynamic library search path; “, that is, by setting LD_ LIBRARY_ Path, add the so path used by the current program to LD_ LIBRARY_ Path, so that when the program runs, to LD_ LIBRARY_ The so can be found by searching path. Of course, we have verified the correctness of this method before.

Look, there’s no problem with the program.

If we only introduce this method repeatedly, then the significance of this paper is not great. The greatest significance of this article is to tell readers that we can not set LD_ LIBRARY_ Pat can also run programs, so where should we start?This article mainly introduces, starting from compiling the program.

Here, I will first introduce the compilation options of GCC, but I will not elaborate here. If you are interested, you can learn about it through man GCC, or from the last article of blog [reprint] the parameters and commands commonly used in the use of GCC

Here, the compilation options we need to use are – WL, – rpath; mainly the letter L, not the number 1. -The rpath option tells GCC to write the path of the program to find so to the ELF file when compiling the link. The usage method is that GCC – o outapp *. C – lzint – WL, – rpath = “/ usr/local/lib” or GCC – o outapp *. C – lzint – WL, – rpath – WL, “/ usr/local/lib” are equivalent in function. As shown in the figure below:

As we can see from the figure, if the program is compiled successfully, it will no longer report error while loading shared libraries. Moreover, the biggest advantage of this method is that after the compilation is successful, the program can run without any settings. Of course, the – rpath parameter passed during compilation must be correct. This method is very useful, especially in cross compiling executable programs of embedded devices. Readers can try it for themselves.

posted @

2016-10-30 01:01

Mr.Recan Reading(

…) comments(

…)

edit

Collection

Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)

The project that has been running very well suddenly reported an error in build. The error message is as follows:

ERROR in static/js/vendor.f1c68aa2d5e85847d30e.js from UglifyJs
Unexpected token name «i», expected punc «;» [./node_modules/element-ui/src/utils/merge.js:2,0][static/js/vendor.f1c68aa2d5e85847d30e.js:17064,11]
Build failed with errors.

In uglifyjs’ GitHub issues # 78, we found such a solution: because uglifyjs only supports Es5, and element UI may introduce a part of the writing of ES6, so webpack packaging fails. The final solution given in issue is to replace uglify JS with uglify es of beta version (beta version introduces support for es2015 +). You need to execute the command NPMI - D in the front-end working directory uglifyjs-webpack-plugin@beta

However, after trying, we found that the problem of build error is still unsolved. After searching for the problem, we decided to use bable to parse the element UI. To complete this operation, we only need to modify the build error in the front-end folder/ webpack.base.conf The. JS file can be modified as follows:
before modification

module: {
rules: [
...
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test')]
},

After modification

 

module: {
rules: [
...
{
test: /\.js$/,
loader: 'babel-loader',//Note that elementUI's source code needs to be parsed using ES6
include: [resolve('src'), resolve('test'),resolve('/node_modules/element-ui/src'),resolve('/node_modules/element-ui/packages')]
},
...

It is equivalent to adding element UI to the package that needs to be parsed by Babel.

After that, execute NPM run build again, and the build is successful.

How to Solve Error creating bean with name ‘log’loginController’

Error Description:

An error occurred during the operation of Maven + SSM project:
A org.springframework.beans . factory.UnsatisfiedDependencyException : error creating bean with name ‘logincontroller’: unsatisfied dependency expressed through field ‘imemberfunction’; as shown in the figure:

Cause of error:

(1) Annotation scanning is not enabled;
(2) the package path of annotation scanning is not set.

resolvent:

(1) In spring- mvc.xml In the configuration file


<mvc:annotation-driven />

(2) In spring- mvc.xml In the configuration file


<context:component-scan base-package="com.bigname.demo03.*" />

Intellij IDEA jetty-jmx.xml Error:Duplicate config file paths found

IntelliJ idea configuring jetty- jmx.xml report errors Error:Duplicate config file paths found

Note: IntelliJ idea version: 2016.3.7 for Mac, jetty version: jetty 8.2.0.v20160908.

reason:

When updating jetty version to jetty 8.2.0.v20160908 today, in configure, in addition to the default configuration file, check etc/jetty- jmx.xml and etc/jetty- ssl.xml when configuring and saving, idea reports an error: Error:Duplicate config File paths found and cannot be saved.

Process:

Try to untick etc/jetty- ssl.xml configuration file, the error remains. Instead, uncheck etc/jetty- jmx.xml , the error disappears. Make sure the error message comes from etc/jetty- jmx.xml configuration file.

solve:

Open the root path of jetty package and find start.ini file, open and pull to the bottom, you can see the list of configuration files that have been checked in the graphical interface, and the last two lines are my additional configuration. In the above heap of configurations in these two lines, you can see that the SSL configuration file has been annotated, but the JMX configuration file has not been annotated, so the configuration file is duplicated. Therefore, in the configuration file of idea, uncheck JMX and confirm start.ini There are no duplicate profiles in .