Tag Archives: Environment construction

[Solved] ERROR SparkContext: Error initializing SparkContext. java.lang.IllegalArgumentException: System memo

During the actual operation of the recommendation system, the following errors occur when executing the featureengineering (Scala) file:
ERROR SparkContext: Error initializing SparkContext. java.lang.IllegalArgumentException: System memory 259522560 must be at least 471859200

Solution:
1. Click Edit configurations

2 If your setting interface has the following red box, paste the following text directly

-Xms128m -Xms512m -XX:MaxPermSize=300m -ea


3. If not, click Modify options first, then add VM options, as shown in the figure below, and then complete the second step

this problem should be solved.

[Solved] VMware Workstation startup error: Unable to open kernel device…

VMware Workstation startup error

Specific error:

Unable to open kernel device "\\. \VMCIDev\VMX": operation completed successfully. Did you reboot after installing VMware Workstation? The module "DevicePowerOn" failed to start.  Failed to start the virtual machine.

Solution:

1. Locate the. VMX file under the virtual machine installation path

2. Modify vmci0.present = “true” to vmci0.present = “false”

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was

If an error is reported in a large project of GIT clone, the data query should be caused by the insufficient default cache size of GIT clone
the solution is to increase the cache space:
git config — global http.postbuffer 1048576000
then an error is reported:
error: RPC failed; Curl 56 gnutls recv error (- 54): error in the pull function.
solution:
change HTTPS protocol to SSH
about to

git clone --branch v0.8.1 https://github.com/pytorch/vision torchvision

Change to

git clone --branch v0.8.1 git://github.com/pytorch/vision torchvision

Gitlab Reconfigure is Stuck ruby_block[wait for redis service socket] action run

Gitlab is stuck in Ruby_ block[wait for redis service socket] action run

Environment: Ubuntu 20

When installing gitlab , execute sudo gitlab CTL reconfigure , and get stuck in this place when the /etc/gitlab/gitlab.rb file is installed

Insert a picture description here

and wait for a long time, but you don’t see any change in the log information output from the console.

Solution:
open another terminal and start the following command

sudo /opt/gitlab/embedded/bin/runsvdir-start

Or execute the above command in the background in the current terminal window

nohup /opt/gitlab/embedded/bin/runsvdir-start &

Then execute

sudo gitlab-ctl reconfigure

[building the flutter environment] error: the flutter directory is not a clone of the GitHub project

During the installation process, enter flutter doctor to report an error:

Error: The Flutter directory is not a clone of the GitHub project.
       The flutter tool requires Git in order to operate properly;
       to set up Flutter, run the following command:
       git clone -b beta https://github.com/flutter/flutter.git

resolvent

Manually create a . Git folder in the root directory of flutter
and execute flutter doctor again to start the installation

During the installation process, you may encounter errors error: unable to 'pub upgrade' shutter tool
at this time, you only need to add the following two variables to the environment variable - & gt; user variable

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn