java.exe finished with nonzero exit value

博客内容指出,只需将libs包下的support_v4删除即可。这是一个简单的操作指令,涉及到对特定包文件的处理。
将libs包下的support_v4删除  即可  
-- set job name set tez.job.name=market.market_w_user_pool_feature; set hive.execution.engine=tez; set tez.queue.name=phl_dw; set paimon.hadoop-load-default-config =false; -- 20250609 增加性能调优参数-开启向量化 谓词下推 小表mapjoin SET hive.vectorized.execution.enabled=true; SET hive.vectorized.execution.reduce.enabled=true; SET hive.optimize.ppd=true; -- 谓词下推 SET hive.optimize.ppd.storage=true; SET hive.auto.convert.join=true; SET hive.mapjoin.smalltable.filesize=104857600; SET hive.auto.convert.join.noconditionaltask.size=251658240; --小文件合并 set hive.merge.mapfiles=true; set hive.merge.mapredfiles=true; set hive.merge.size.per.task=256000000; set hive.merge.smallfiles.avgsize=32000000; --数据倾斜 set hive.map.aggr=true; set hive.groupby.skewindata=true; set hive.optimize.skewjoin=true; set hive.skewjoin.key = 100000; --tez set tez.am.resource.memory.mb=6144; set tez.task.resource.memory.mb=10240; -- set hive.tez.java.opts=8192; set hive.tez.container.max.java.heap.fraction=0.8; set tez.task.resource.cpu.vcores=3; set tez.runtime.io.sort.mb=4096; set tez.runtime.unordered.output.buffer.size-mb=1024; set tez.runtime.skew.detect=true; set tez.runtime.skew.maxsplit=10; drop table if exists dw_tmp.tmp_market_list_pool_v2; create table dw_tmp.tmp_market_list_pool_v2 stored as orc as select m.apply_source source_name ,u.user_uuid ,u.user_phone ,p.plain_phone_md5 user_phone_md5 ,u.user_source ,u.user_channel_code ,u.user_status ,u.user_create_at as register_time from dwb_paimon.dwb_c_user as u left join dwd.dwd_w_user_risk_source_mapping_paimon as m on u.user_source=m.user_source left join privacy.privacy_c_plain_paimon as p on p.plain_user_id=u.user_id where u.user_status='ACTIVE' ; 该hive on tez报错: ERROR : Status: Failed ERROR : Vertex failed, vertexName=Map 3, vertexId=vertex_1746754059482_90650_1_01, diagnostics=[Task failed, taskId=task_1746754059482_90650_1_01_000000, diagnostics=[TaskAttempt 0 failed, info=[Container container_e08_1746754059482_90650_01_000003 finished with diagnostics set to [Container failed, exitCode=1. [2025-08-04 20:25:19.841]Exception from container-launch. Container id: container_e08_1746754059482_90650_01_000003 Exit code: 1 Exception message: Launch container failed Shell error output: Nonzero exit code=1, error message='Invalid argument number' Shell output: main : command provided 1 main : run as user is omm main : requested yarn user is deploy Getting exit code file... Creating script paths... Writing pid file... Writing to tmp file /srv/BigData/data2/nm/localdir/nmPrivate/application_1746754059482_90650/container_e08_1746754059482_90650_01_000003/container_e08_1746754059482_90650_01_000003.pid.tmp Writing to cgroup task files... Creating local dirs... Launching container... [2025-08-04 20:25:19.842]Container exited with a non-zero exit code 1. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Last 4096 bytes of stderr : Error: Could not find or load main class 8192
08-05
Starting C synthesis ... Starting C simulation ... D:/vitis202302/Vitis_HLS/2023.2/bin/vitis_hls.bat G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl INFO: [HLS 200-10] Running 'D:/vitis202302/Vitis_HLS/2023.2/bin/unwrapped/win64.o/vitis_hls.exe' INFO: [HLS 200-10] For user 'HP' on host 'desktop-qjs3vb7' (Windows NT_amd64 version 6.2) on Fri Jul 18 15:20:31 +0800 2025 INFO: [HLS 200-10] In directory 'G:/HLS_Test/axi_test' INFO: [HLS 200-2053] The vitis_hls executable is being deprecated. Consider using vitis-run --mode hls --tcl Sourcing Tcl script 'G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl' INFO: [HLS 200-1510] Running: source G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl INFO: [HLS 200-1510] Running: open_project axi_test INFO: [HLS 200-10] Opening project 'G:/HLS_Test/axi_test/axi_test'. INFO: [HLS 200-1510] Running: add_files axi_interfaces.c INFO: [HLS 200-10] Adding design file 'axi_interfaces.c' to the project INFO: [HLS 200-1510] Running: add_files -tb axi_interfaces_test.c INFO: [HLS 200-10] Adding test bench file 'axi_interfaces_test.c' to the project INFO: [HLS 200-1510] Running: open_solution axi_test -flow_target vivado INFO: [HLS 200-10] Opening solution 'G:/HLS_Test/axi_test/axi_test/axi_test'. INFO: [SYN 201-201] Setting up clock 'default' with a period of 5ns. INFO: [HLS 200-1611] Setting target device to 'xcvu11p-flga2577-1-e' INFO: [HLS 200-1505] Using flow_target 'vivado' Resolution: For help on HLS 200-1505 see docs.xilinx.com/access/sources/dita/topic?Doc_Version=2023.2%20English&url=ug1448-hls-guidance&resourceid=200-1505.html INFO: [HLS 200-1510] Running: set_part xcvu11p-flga2577-1-e INFO: [HLS 200-1510] Running: create_clock -period 5 -name default INFO: [SYN 201-201] Setting up clock 'default' with a period of 5ns. INFO: [HLS 200-1510] Running: csim_design -quiet INFO: [SIM 211-2] *************** CSIM start *************** INFO: [SIM 211-4] CSIM will launch GCC as the compiler. INFO: [HLS 200-2036] Building debug C Simulation binaries Compiling(apcc) ../../../../axi_interfaces_test.c in debug mode INFO: [HLS 200-10] Running 'D:/vitis202302/Vitis_HLS/2023.2/bin/unwrapped/win64.o/apcc.exe' INFO: [HLS 200-10] For user 'HP' on host 'desktop-qjs3vb7' (Windows NT_amd64 version 6.2) on Fri Jul 18 15:20:34 +0800 2025 INFO: [HLS 200-10] In directory 'G:/HLS_Test/axi_test/axi_test/axi_test/csim/build' ../../../../axi_interfaces_test.c:42:10: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] retval = system("diff --brief -w result.dat result.golden.dat"); ^ 1 warning generated. ../../../../axi_interfaces_test.c:42:10: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] retval = system("diff --brief -w result.dat result.golden.dat"); ^ 1 warning generated. INFO: [APCC 202-3] Tmp directory is G:/HLS_Test/axi_test/axi_test/axi_test/csim/build/apcc_db_HP/231284131701203 INFO: [APCC 202-1] APCC is done. INFO: [HLS 200-112] Total CPU user time: 1 seconds. Total CPU system time: 0 seconds. Total elapsed time: 0.741 seconds; peak allocated memory: 8.262 MB. Compiling(apcc) ../../../../axi_interfaces.c in debug mode INFO: [HLS 200-10] Running 'D:/vitis202302/Vitis_HLS/2023.2/bin/unwrapped/win64.o/apcc.exe' INFO: [HLS 200-10] For user 'HP' on host 'desktop-qjs3vb7' (Windows NT_amd64 version 6.2) on Fri Jul 18 15:20:36 +0800 2025 INFO: [HLS 200-10] In directory 'G:/HLS_Test/axi_test/axi_test/axi_test/csim/build' INFO: [APCC 202-3] Tmp directory is G:/HLS_Test/axi_test/axi_test/axi_test/csim/build/apcc_db_HP/81684133866848 INFO: [APCC 202-1] APCC is done. INFO: [HLS 200-112] Total CPU user time: 1 seconds. Total CPU system time: 0 seconds. Total elapsed time: 0.722 seconds; peak allocated memory: 11.082 MB. Generating csim.exe diff: result.golden.dat: No such file or directory Test failed !!! @E Simulation failed: Function 'main' returns nonzero value '1'. ERROR: [SIM 211-100] 'csim_design' failed: nonzero return value. INFO: [SIM 211-3] *************** CSIM finish *************** INFO: [HLS 200-111] Finished Command csim_design CPU user time: 0 seconds. CPU system time: 0 seconds. Elapsed time: 5.089 seconds; current allocated memory: 0.633 MB. 4 while executing "source G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl" invoked from within "hls::main G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl" ("uplevel" body line 1) invoked from within "uplevel 1 hls::main {*}$newargs" (procedure "hls_proc" line 16) invoked from within "hls_proc [info nameofexecutable] $argv" INFO: [HLS 200-112] Total CPU user time: 2 seconds. Total CPU system time: 0 seconds. Total elapsed time: 7.19 seconds; peak allocated memory: 193.797 MB. Finished C simulation.
07-19
C:\Users\Administrator\PyCharmMiscProject\.venv\Scripts\python.exe D:/Program Files/JetBrains/PyCharm 2025.2.3/plugins/python-ce/helpers/packaging_tool.py install cupy Collecting cupy Using cached cupy-13.6.0.tar.gz (3.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Requirement already satisfied: numpy<2.6,>=1.22 in c:\users\administrator\pycharmmiscproject\.venv\lib\site-packages (from cupy) (2.3.4) Collecting fastrlock>=0.5 (from cupy) Using cached fastrlock-0.8.3-cp312-cp312-win_amd64.whl.metadata (7.9 kB) Using cached fastrlock-0.8.3-cp312-cp312-win_amd64.whl (31 kB) Building wheels for collected packages: cupy Building wheel for cupy (pyproject.toml): started Building wheel for cupy (pyproject.toml): finished with status 'error' Failed to build cupy error: subprocess-exited-with-error Building wheel for cupy (pyproject.toml) did not run successfully. exit code: 1 [73 lines of output] Clearing directory: C:\Users\Administrator\AppData\Local\Temp\pip-install-51_3qmlh\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\cupy\.data Generating CUPY_CACHE_KEY from header files... CUPY_CACHE_KEY (1717 files matching C:\Users\Administrator\AppData\Local\Temp\pip-install-51_3qmlh\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\cupy\_core\include\**): 0bb7da13cbc36729b5a184678063e5ebaecfdde7 Looking for NVTX from: ['C:\\Program Files\\NVIDIA Corporation\\Nsight Systems 2025.3.2\\target-windows-x64\\nvtx'] Using NVTX at: C:\Program Files\NVIDIA Corporation\Nsight Systems 2025.3.2\target-windows-x64\nvtx -------- Configuring Module: cuda -------- Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ ************************************************** *** WARNING: Cannot check compute capability Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ ************************************************** ************************************************************ * CuPy Configuration Summary * ************************************************************ Build Environment: Include directories: ['C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-51_3qmlh\\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\\cupy/_core/include\\cupy/_cccl/libcudacxx', 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-51_3qmlh\\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\\cupy/_core/include\\cupy/_cccl/thrust', 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-51_3qmlh\\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\\cupy/_core/include\\cupy/_cccl/cub', 'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-51_3qmlh\\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\\cupy/_core/include', 'C:\\Program Files\\NVIDIA Corporation\\Nsight Systems 2025.3.2\\target-windows-x64\\nvtx\\include'] Library directories: [] nvcc command : (not found) hipcc command : (not found) Environment Variables: CFLAGS : (none) LDFLAGS : (none) LIBRARY_PATH : (none) CUDA_PATH : (none) NVCC : (none) HIPCC : (none) ROCM_HOME : (none) Modules: cuda : No -> Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'cufft.h', 'curand.h', 'cusparse.h'] -> Check your CFLAGS environment variable. ERROR: CUDA could not be found on your system. HINT: You are trying to build CuPy from source, which is NOT recommended for general use. Please consider using binary packages instead. Please refer to the Installation Guide for details: https://docs.cupy.dev/en/stable/install.html ************************************************************ Traceback (most recent call last): File "C:\Users\Administrator\PyCharmMiscProject\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module> main() File "C:\Users\Administrator\PyCharmMiscProject\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main json_out["return_val"] = hook(**hook_input["kwargs"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\PyCharmMiscProject\.venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 280, in build_wheel return _build_backend().build_wheel( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-sqtmjs6t\overlay\Lib\site-packages\setuptools\build_meta.py", line 435, in build_wheel return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-sqtmjs6t\overlay\Lib\site-packages\setuptools\build_meta.py", line 423, in _build return self._build_with_temp_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-sqtmjs6t\overlay\Lib\site-packages\setuptools\build_meta.py", line 404, in _build_with_temp_dir self.run_setup() File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-sqtmjs6t\overlay\Lib\site-packages\setuptools\build_meta.py", line 317, in run_setup exec(code, locals()) File "<string>", line 59, in <module> File "C:\Users\Administrator\AppData\Local\Temp\pip-install-51_3qmlh\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\install\cupy_builder\cupy_setup_build.py", line 562, in get_ext_modules extensions = make_extensions(ctx, compiler, use_cython) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\AppData\Local\Temp\pip-install-51_3qmlh\cupy_8ad1d1feb8f74bcd9b3c395c1deddc99\install\cupy_builder\cupy_setup_build.py", line 403, in make_extensions raise Exception('Your CUDA environment is invalid. ' Exception: Your CUDA environment is invalid. Please check above error log. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for cupy [notice] A new release of pip is available: 25.1.1 -> 25.3 [notice] To update, run: python.exe -m pip install --upgrade pip ERROR: Failed to build installable wheels for some pyproject.toml based projects (cupy) Process finished with exit code 1
最新发布
11-17
你遇到了如下测试反馈: ``` [Test #1 0.in] [Nonzero Exit Status] ``` ### ❌ 问题分析:**非零退出状态(Nonzero Exit Status)** 这表示你的程序 **以非 `0` 的返回值退出了 `main` 函数**,即: **程序被判定为“异常终止”或“运行错误”**。 在你的代码中,这个问题出在 `default` 分支: ```c default: printf("Error:invalid operator\n"); return 1; // ← 这里导致 Nonzero Exit Status ``` --- ### ✅ 正确做法:**题目通常要求输出错误信息即可,不要求返回非零状态** 很多 OJ 系统(如洛谷、PTA、Codeforces、学校评测系统)在判断程序是否正常运行时,会检查主函数的返回值。 即使你输出了 `"Error: invalid operator\n"`,但如果你 `return 1;`,评测系统可能认为: > “这个程序运行失败了”,而不是“它正确处理了非法输入”。 而实际上,**处理非法输入是你程序逻辑的一部分**,应该视为“正常执行完毕”,应返回 `0`。 --- ### ✅ 修改建议:将 `return 1;` 改为 `return 0;` 或直接用 `break;` #### ✅ 推荐改法一:使用 `break` 并最后统一返回 ```c #include <stdio.h> int main() { int a, b; char op; scanf("%d %d", &a, &b); scanf(" %c", &op); switch (op) { case '+': printf("%d\n", a + b); break; case '-': printf("%d\n", a - b); break; case '*': printf("%d\n", a * b); break; case '/': printf("%d\n", a / b); break; default: printf("Error: invalid operator\n"); break; // 不要 return 1,只输出错误 } return 0; // 统一返回 0 } ``` #### ✅ 推荐改法二(更安全):加输入合法性检查 有些题目保证输入合法(比如只会是 `+ - * /`),那其实可以去掉 `default` 提示,或者简化输出。 但如果题目样例中确实出现了非法操作符,并要求输出提示,则保留输出,但不要让程序“异常退出”。 --- ### 🔁 对比说明: | 写法 | 是否推荐 | 原因 | |------|----------|------| | `return 1;` in `default` | ❌ 不推荐 | 导致 Nonzero Exit,评测系统判错 | | `printf(...); break;` | ✅ 推荐 | 正常输出错误,程序正常结束 | | `return 0;` at end | ✅ 必须 | 表示程序成功执行 | --- ### 🧪 示例验证: **输入:** ``` 10 20 # ``` **期望输出:** ``` Error: invalid operator ``` **你的程序行为:** - 输出正确 ✅ - 但 `return 1` ❌ → 被判为运行时错误(RE) **修改后:** - 输出相同 ✅ - `return 0` ✅ → 判为正确(AC) --- ### 💡 总结规则: > 在 OJ 题目中,只要程序没有崩溃、能完成输入输出任务,**即使是处理了错误情况,也应正常退出(return 0)**。 除非题目明确要求:“遇到错误返回 1”,否则一律 `return 0;` ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值