This is a local developer tool. The service port is not open
Turn on security settings for settings
Open port
Rerun and compile
This is a local developer tool. The service port is not open
Turn on security settings for settings
Open port
Rerun and compile
The boss told me that this is the problem that M1 may encounter, but I’m not M1, and I haven’t updated the system!!! Hahaha, fuck
these two pits are encountered
x 'require': incompatible library version........ (LoadError)
cannot load such file -- 3.0/ffi_c (LoadError)
Screenshot above
when these two pits are encountered. Baidu, there are few online solutions, and the cocoapods are deleted and retried. It’s useless
finally, read the tips carefully!! Let’s enter
gem pristine executable - hooks -- version 1.6.1
but we still can’t
finally, we found it was input 👆 This command has insufficient permissions
you can reuse cocoapods by adding sudo before this command, and pod install is normal. The correct command is as follows
sudo gem pristine executable - hooks -- version 1.6.1
Idea version 2121.2.1
1. JDK configuration problem
Setting project jdk
Setting module jdk
During the setting of compiler jdk
the clean operation was performed after several settings, resulting in @override error. Later, it was found that the compiler was not checked
use compiler from module target JDK when possible
2. Add in POM file
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
</plugins>
</build>
Done!
Possible reason 1: when you use from pyspark.SQL.Functions import * to pour in the pyspark function, the python built-in function in UDF is replaced by spark function, and you can import it again
Possible reason 2: the user-defined UDF function is not placed in the main function, resulting in an error
Article catalog
1 error recurrence 2 causes and Solutions
1 error recurrence
ERROR queue.BoundedInMemoryExecutor: error producing records0]
org.apache.parquet.io.ParquetDecodingException: Can not read value at 1 in block 0 in file hdfs://hdp-yl-1:8020/user/testJoin/test_join27/join/default/1d0f7a5b-fcbc-40aa-994d-ada47e3a3257-0_0-59-5054_20211119171950.parquet
2 causes and Solutions
The reason for the error is that the data types of the fields of the table to be written and the fields of the destination table are different.
The solution is to reset the data type of the written data. See the following example.
write_df2 = write_df2.withColumn("superior_emp_id",col("superior_emp_id").cast("string"))
Error generation environment
Generated when mybatis sets log4j log
Error description
log4j:ERROR Category option " 1 " not a decimal integer.
java.lang.NumberFormatException: For input string: " 1 "

Error reason
In the log4j.properties file, there are more spaces in the log4j.appender.console.layout.conversionpattern attribute

Solution:
Before modification:
log4j.appender.console.layout.ConversionPattern = %d{ABSOLUTE} %5p %c{ 1 }:%L - %m%n
After modification:
log4j.appender.console.layout.ConversionPattern = %d{ABSOLUTE} %5p %c{1}:%L - %m%n
Previous SQL writing:
"SELECT * FROM " + table + " LIMIT "
Change to the current wording:
SELECT * FROM " + schema +"." + table + " LIMIT "
Add the schema when querying
The problem indicates that the storage client cannot be connected.
Solution:
Execute on the nebula console
show hosts;
Since the default is 127.0.0.1, the storage client gets the storage address through the metad service when connecting to the nebula storage, so the storage address obtained in the spark connector is 127.0.0.1:9779, which is wrong.
Therefore, you can change the default address to the real address.
An error is reported when implementing MySQL master-slave replication configuration, as shown in the figure:

Reason: it is not allowed to change when starting MySQL master-slave replication
Solution: first turn off MySQL master-slave replication, then refresh, then make changes, and then turn on MySQL master-slave replication
① turn off MySQL master-slave replication
stop slave;
② Refresh
flush privileges;
③ Enable MySQL master-slave replication
start slave;
The main reason is that Django is upgraded or downgraded;
Solution:
1. Delete database content
2、python manage.py makemigrations
3、python manage.py migrate
4、python manage.py createsuperuser
An error was reported in compiling usbview today…
error RC2247 : SYMBOL name too long

Therefore, you only need to add it in front of the original usbview.rc
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#include "prsht.h"
#include "wtypes.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
Then it’s OK
later, use the resource editor provided by vs to change the location and update the resource content again


In this case, the modified full usview.rc content is provided:
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#include "prsht.h"
#include "wtypes.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
//#if WINNT
//#include <ntverp.h>
//#else
//#include <version.h>
//#endif
//
//
// VERSION
//
#define VER_FILEDESCRIPTION_STR "Microsoft\256 Windows(TM) USB Device Viewer"
#define VER_INTERNALNAME_STR "USBVIEW"
#define VER_ORIGINALFILENAME_STR "USBVIEW.EXE"
#define VER_LEGALCOPYRIGHT_STR "Copyright \251 Microsoft Corporation 1996-2008. All Rights Reserved."
#define VER_FILETYPE VFT_APP
#define VER_FILESUBTYPE VFT2_UNKNOWN
//#include <common.ver>
//
//
// ICON
//
IDI_ICON ICON DISCARDABLE "USB.ICO"
IDI_BADICON ICON DISCARDABLE "BANG.ICO"
IDI_COMPUTER ICON DISCARDABLE "MONITOR.ICO"
IDI_HUB ICON DISCARDABLE "HUB.ICO"
IDI_NODEVICE ICON DISCARDABLE "PORT.ICO"
//
//
// Cursor
//
IDC_SPLIT CURSOR DISCARDABLE "SPLIT.CUR"
/
//
// Dialog
//
IDD_MAINDIALOG DIALOGEX 0, 0, 640, 350
STYLE WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU |
WS_THICKFRAME
CAPTION "USB View"
MENU IDR_MENU
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "Tree1",IDC_TREE,"SysTreeView32",TVS_HASBUTTONS |
TVS_HASLINES | TVS_LINESATROOT | WS_BORDER | WS_TABSTOP,
0,0,400,341,WS_EX_CLIENTEDGE
EDITTEXT IDC_EDIT,400,0,240,341,ES_MULTILINE | ES_READONLY |
WS_VSCROLL | WS_HSCROLL
CONTROL "Devices Connected: 0",IDC_STATUS,"msctls_statusbar32",
SBARS_SIZEGRIP,
0,342,640,8
END
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 212, 82
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About USBView"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "OK",IDOK,80,62,50,14
LTEXT "USB Device Viewer",IDC_STATIC,54,15,64,8
LTEXT "Copyright (c) 1996-2008 Microsoft Corporation",
IDC_STATIC,54,30,145,8
#ifndef WINNT
LTEXT "Version",IDC_STATIC,55,45,24,8
LTEXT VER_PRODUCTVERSION_STR,IDC_STATIC,87,45,33,8
#endif
ICON IDI_ICON,IDC_STATIC,15,15,21,20
END
/
//
// Menu
//
IDR_MENU MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Refresh\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "E&xit", ID_EXIT
END
POPUP "&Options"
BEGIN
MENUITEM "&Auto Refresh", ID_AUTO_REFRESH
MENUITEM "&Config Descriptors", ID_CONFIG_DESCRIPTORS
END
POPUP "&Help"
BEGIN
MENUITEM "&About", ID_ABOUT
END
END
//
//
// Accelerator
//
IDACCEL ACCELERATORS DISCARDABLE
BEGIN
VK_F5, ID_REFRESH, VIRTKEY,NOINVERT
END
Content of resource.H:
/*++
Copyright (c) 1998 Microsoft Corporation, All Rights Reserved.
--*/
#define IDD_MAINDIALOG 101
#define IDR_MENU 102
#define IDD_ABOUT 103
#define IDI_ICON 104
#define IDC_SPLIT 105
#define IDACCEL 106
// added ScottT
#define IDI_BADICON 107
#define IDI_COMPUTER 108
#define IDI_HUB 109
#define IDI_NODEVICE 110
#define IDC_TREE 1000
#define IDC_EDIT 1001
#define IDC_STATUS 1002
#define ID_EXIT 40001
#define ID_REFRESH 40002
#define ID_AUTO_REFRESH 40003
#define ID_CONFIG_DESCRIPTORS 40004
#define ID_ABOUT 40005
#define IDC_STATIC 0xFFFFFFFF
#define VER_PRODUCTVERSION_STR "ubzh.com"
Running a file with a PCL library reports an error #error PCL requires C + + 14 or above
Solution: find all PCL dependent function packages in the project and change their corresponding cmakelists.txt file
For specific modification methods, see
add_compile_options(-std=c++11)
Add a line of code to this line of code
set(CMAKE_CXX_STANDARD 14)
As shown in the figure
