选定的 Parcel 正在下载并安装在群集的所有主机上失败

CM6安装CDH6的时候到了这一步出现了这个问题图片说明

下图是/var/log/cloudera-scm-agent/cloudera-scm-agent.log的报错信息

图片说明

Traceback (most recent call last):

File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/downloader.py", line 502, in callable
callback(url, curr_op)

File "/opt/cloudera/cm-agent/lib/python2.7/site-packages/cmf/parcel_cache.py", line 200, in cb
raise e

Exception: Src file /opt/cloudera/parcels/.flood/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel does not exist

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
centos7 配置cloudera 在web 群集安装 的install parcels 这一步分配完成后 报错
错误提示: ```Src file /opt/cloudera/parcels/.flood/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel/CDH-6.1.0-1.cdh6.1.0.p0.770702-el7.parcel does not exist ``` 有人说是因为硬盘空间不足,可我还有40G空闲 ![图片说明](https://img-ask.csdn.net/upload/201907/09/1562681283_697061.png) #求指教
Rancher's Gift 如何用程序计算
Problem Description Rancher Joel has a tract of land in the shape of a convex quadrilateral that the wants to divide among his sons Al, Bob, Chas and Dave, who wish to continue ranching on their portions, and his daughter Emily, who wishes to grow vegetables on her portion. The center of the tract is most suitable for vegetable farming so Joel decides to divide the land by drawing lines from each corner (A, B, C, D in counter clockwise order) to the center of an opposing side (respectively A', B', C' and D') Each son would receive one of the triangular sections and Emily would receive the central quadrilateral section. As shown in the figure, Al's tract is to be bounded by the line from A to B, the line from A to the midpoint of BC and the line from B to the midpoint of CD' Bob&s ract is to be bounded by the line from B to C, the line from B to the midpoint of CD and the line from C to the midpoint of DA, and so on. Your job is to write a program that will help Rancher Joel determine the area of each child's tract and the length of the fence he will have to put around Emily's parcel to keep her brothers' cows out of her crops. For his problem, A will always be at (0, 0) and B will always be at (x, 0). Coordinates will be in rods (a rod is 16.5 feet).The returned areas should be in acres to 3 decimal places (an acre is 160 square rods) and the length of the fence should be in feet, rounded up to the next foot. Input The first line of input contains a single integer P( 1 <= P <= 1000),which is the number of data sets that follow. Each data set is a single line that contains of a decimal integer followed by five (5) space separated floating-point values. The first (integer) value is the data set number, N. The floating-point values are B.x, C.x, C.y, D.x and D.y in that order (where V.x indicates the x coordinate of V and V.y indicates the y coordinate of V). Recall that the y coordinate of B is always zero (0). The supplied coordinates will always specify a valid convex quadrilateral. Output For each data set there is a single line of output. It contains the data set number, N , followed by a single space followed by five(5) space separated floating-point values to three(3) decimal place accuracy, followed by a single space and a decimal integer! The floating-point values are the areas in acres of the properties of Al, Bob, Chas, Dave, and Emily respectively. The final integer is the length of fence in feet required to fence in Emily's property (rounded up to the next foot). Sample Input 3 1 200 250 150 -50 200 2 200 200 100 0 100 3 201.5 157.3 115.71 -44.2 115.71 Sample Output 1 35.000 54.136 75.469 54.167 54.666 6382 2 25.000 25.000 25.000 25.000 25.000 4589 3 29.144 29.144 29.144 29.144 29.144 4937
Detour Buster 算法的思路是什么
Problem Description The Green Parcel Services company employs cyclists to deliver parcels across a large metropolitan city, and employees are paid according to the distances they must travel to deliver parcels. Each company bicycle has been equipped with a global positioning system that records its position once every couple of seconds. The sequence of positions for one delivery is called a track and the length of a track, which is the sum of euclidean distances between consecutive pairs of recorded points, is used to calculate the employee's payment. A recent audit of the recorded tracks revealed that some tracks self-intersect, which indicates that some employees are making unnecessary detours. Your task is to write a program to process a given track and calculate the length of the shortest possible track from the first to the last point of the original track. The shortest possible track must be part of the original track and may include travelling in the same or opposite direction along the original track. Input Input starts with an integer, on a line by itself, that represents the number of tracks tobe shortened. The description of each track begins with a positive integer N, on a line by itself, representing the number of recorded points that define the track. Each of the following N lines contains two integers, separated by a single space, that define the xand y-coordinates of a point on the track in metres. The points are listed in order of their appearance on the track. Two successive points, which form a segment, will be no more than thirty metres apart and a segment will not intersect more than twenty other segments. All x- and ycoordinates have values between -10,000,000 and 10,000,000, inclusive. N has values between 1 and 100,000, inclusive. Output For each input track, the output consists of a single integer, on a line by itself, which is the length of the shortest track in metres. The answer must be rounded to the nearest integer value. Reminder: Rounding a positive number R.xyz to the nearest integer: If the first decimal place (that is x) is less than 5, then the rounded value is R. Otherwise, the rounded value is R+1. Sample Input 25 0 0 12 0 20 0 10 10 10 -10 6 0 0 15 0 10 -5 4 1 10 1 10 -10 Sample Output 20 17
androidstudio编写cmake程序ffmpeg时报的错
--------- beginning of crash 2019-12-21 14:14:46.254 6347-6381/com.zj.player A/libc: Fatal signal 4 (SIGILL), code 0, fault addr 0x18cb in tid 6381 (Thread-2) 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: Build fingerprint: 'google/android_x86/x86:7.1.2/N2G47O/V9.5.8.0.OCACNFA:/release-keys' 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: Revision: '0' 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: ABI: 'x86' 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: pid: 6347, tid: 6381, name: Thread-2 >>> com.zj.player <<< 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: signal 4 (SIGILL), code 0 (SI_USER), fault addr 0x18cb 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: eax 00000000 ebx 000018ed ecx 00000004 edx 9d5c2ff4 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: esi 9d7647e4 edi 9d84520c 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: xcs 00000073 xds 0000007b xes 0000007b xfs 0000003b xss 0000007b 2019-12-21 14:14:46.312 6384-6384/? A/DEBUG: eip 9d369fff ebp 000018cb esp 96aff6a0 flags 00000246 2019-12-21 14:14:46.313 6384-6384/? A/DEBUG: backtrace: 2019-12-21 14:14:46.313 6384-6384/? A/DEBUG: #00 pc 00209fff /system/lib/libhoudini.so --------- beginning of system 2019-12-21 14:14:46.765 1456-1477/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 60) 2019-12-21 14:14:46.766 1456-6391/system_process E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 104) 2019-12-21 14:14:46.767 1288-1288/? E/lowmemorykiller: Error writing /proc/6347/oom_score_adj; errno=22 2019-12-21 14:14:46.792 1290-1290/? E/EGL_adreno: tid 1290: eglCreateSyncKHR(2054): error 0x3004 (EGL_BAD_ATTRIBUTE) 2019-12-21 14:14:46.793 1456-1500/system_process E/InputDispatcher: channel '3c2e8ec com.zj.player/com.zj.player.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-12-21 14:14:46.966 1912-1977/com.android.launcher3 E/EGL_adreno: tid 1977: eglSurfaceAttrib(1323): error 0x3009 (EGL_BAD_MATCH) 2019-12-21 14:14:47.016 1456-3168/system_process E/EGL_adreno: tid 3168: eglSurfaceAttrib(1323): error 0x3009 (EGL_BAD_MATCH)
Rancher's Gift
Problem Description Rancher Joel has a tract of land in the shape of a convex quadrilateral that the wants to divide among his sons Al, Bob, Chas and Dave, who wish to continue ranching on their portions, and his daughter Emily, who wishes to grow vegetables on her portion. The center of the tract is most suitable for vegetable farming so Joel decides to divide the land by drawing lines from each corner (A, B, C, D in counter clockwise order) to the center of an opposing side (respectively A', B', C' and D') Each son would receive one of the triangular sections and Emily would receive the central quadrilateral section. As shown in the figure, Al's tract is to be bounded by the line from A to B, the line from A to the midpoint of BC and the line from B to the midpoint of CD' Bob&s ract is to be bounded by the line from B to C, the line from B to the midpoint of CD and the line from C to the midpoint of DA, and so on. Your job is to write a program that will help Rancher Joel determine the area of each child's tract and the length of the fence he will have to put around Emily's parcel to keep her brothers' cows out of her crops. For his problem, A will always be at (0, 0) and B will always be at (x, 0). Coordinates will be in rods (a rod is 16.5 feet).The returned areas should be in acres to 3 decimal places (an acre is 160 square rods) and the length of the fence should be in feet, rounded up to the next foot. Input The first line of input contains a single integer P( 1 <= P <= 1000),which is the number of data sets that follow. Each data set is a single line that contains of a decimal integer followed by five (5) space separated floating-point values. The first (integer) value is the data set number, N. The floating-point values are B.x, C.x, C.y, D.x and D.y in that order (where V.x indicates the x coordinate of V and V.y indicates the y coordinate of V). Recall that the y coordinate of B is always zero (0). The supplied coordinates will always specify a valid convex quadrilateral. Output For each data set there is a single line of output. It contains the data set number, N , followed by a single space followed by five(5) space separated floating-point values to three(3) decimal place accuracy, followed by a single space and a decimal integer! The floating-point values are the areas in acres of the properties of Al, Bob, Chas, Dave, and Emily respectively. The final integer is the length of fence in feet required to fence in Emily's property (rounded up to the next foot). Sample Input 3 1 200 250 150 -50 200 2 200 200 100 0 100 3 201.5 157.3 115.71 -44.2 115.71 Sample Output 1 35.000 54.136 75.469 54.167 54.666 6382 2 25.000 25.000 25.000 25.000 25.000 4589 3 29.144 29.144 29.144 29.144 29.144 4937
appium1.15.1连接安卓系统7.0以上的真机,打开非系统应用报安全错误,求解?
以下是打开应用的代码(python)。如果操作对象是系统应用,代码正常运行;如果操作的对象为用户安装的应用,代码报错 ``` from appium import webdriver desired_caps = dict() #平台名:区分Android、ios desired_caps['platformName'] = 'Android' #平台版本:同连接设备上的(关于)安卓版本一致 (6.1.1版本,可填写6.1.1、6.1、6) desired_caps['platformVersion'] = '9' #设备名:ios需正确填写,安卓不为空则可以 desired_caps['deviceName'] = 'CLB7N18301000651' #应用名:通过adb查看 desired_caps['appPackage'] = 'com.lefull.tenant' #界面名:通过adb查看 desired_caps['appActivity'] = '.ui.TenantActivity' #打开应用,进入指定页面 driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps) ``` 运行非系统应用,代码报错 ``` selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.lefull.tenant' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command '/Users/moon/android-sdk-macosx/platform-tools/adb -P 5037 -s CLB7N18301000651 shell am start -W -n com.lefull.tenant/.ui.TenantActivity -S' exited with code 255'; Stderr: 'Security exception: Permission Denial: starting Intent { flg=0x10000000 cmp=com.lefull.tenant/.ui.TenantActivity } from null (pid=30377, uid=2000) not exported from uid 10163 java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.lefull.tenant/.ui.TenantActivity } from null (pid=30377, uid=2000) not exported from uid 10163 at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(Landroid/content/Intent;Landroid/content/pm/ActivityInfo;Ljava/lang/String;IIILjava/lang/String;ZZLcom/android/server/am/ProcessRecord;Lcom/android/server/am/ActivityRecord;Lcom/android/server/am/ActivityStack;)Z(libmapleservices.so:4357457) at com.android.server.am.ActivityStarter.startActivity(Landroid/app/IApplicationThread;Landroid/content/Intent;Landroid/content/Intent;Ljava/lang/String;Landroid/content/pm/ActivityInfo;Landroid/content/pm/ResolveInfo;Landroid/service/voice/IVoiceInteractionSession;Lcom/android/internal/app/IVoiceInteractor;Landroid/os/IBinder;Ljava/lang/String;IIILjava/lang/String;IIILcom/android/server/am/SafeActivityOptions;ZZ[Lcom/android/server/am/ActivityRecord;Lcom/android/server/am/TaskRecord;Z)I(libmapleservices.so:4763781) at com.android.server.am.ActivityStarter.startActivity(Landroid/app/IApplicationThread;Landroid/content/Intent;Landroid/content/Intent;Ljava/lang/String;Landroid/content/pm/ActivityInfo;Landroid/content/pm/ResolveInfo;Landroid/service/voice/IVoiceInteractionSession;Lcom/android/internal/app/IVoiceInteractor;Landroid/os/IBinder;Ljava/lang/String;IIILjava/lang/String;IIILcom/android/server/am/SafeActivityOptions;ZZ[Lcom/android/server/am/ActivityRecord;Lcom/android/server/am/TaskRecord;Ljava/lang/String;Z)I(libmapleservices.so:4769313) at com.android.server.am.HwActivityStarter.startActivity(Landroid/app/IApplicationThread;Landroid/content/Intent;Landroid/content/Intent;Ljava/lang/String;Landroid/content/pm/ActivityInfo;Landroid/content/pm/ResolveInfo;Landroid/service/voice/IVoiceInteractionSession;Lcom/android/internal/app/IVoiceInteractor;Landroid/os/IBinder;Ljava/lang/String;IIILjava/lang/String;IIILcom/android/server/am/SafeActivityOptions;ZZ[Lcom/android/server/am/ActivityRecord;Lcom/android/server/am/TaskRecord;Ljava/lang/String;Z)I(libmaplehwServices.so:3322649) at com.android.server.am.ActivityStarter.startActivityMayWait(Landroid/app/IApplicationThread;ILjava/lang/String;Landroid/content/Intent;Ljava/lang/String;Landroid/service/voice/IVoiceInteractionSession;Lcom/android/internal/app/IVoiceInteractor;Landroid/os/IBinder;Ljava/lang/String;IILandroid/app/ProfilerInfo;Landroid/app/WaitResult;Landroid/content/res/Configuration;Lcom/android/server/am/SafeActivityOptions;ZILcom/android/server/am/TaskRecord;Ljava/lang/String;Z)I(libmapleservices.so:6583725) at com.android.server.am.ActivityStarter.execute()I(libmapleservices.so:4770265) at com.android.server.am.ActivityManagerService.startActivityAndWait(Landroid/app/IApplicationThread;Ljava/lang/String;Landroid/content/Intent;Ljava/lang/String;Landroid/os/IBinder;Ljava/lang/String;IILandroid/app/ProfilerInfo;Landroid/os/Bundle;I)Landroid/app/WaitResult;(libmapleservices.so:6887257) at com.android.server.am.ActivityManagerShellCommand.runStartActivity(Ljava/io/PrintWriter;)I(libmapleservices.so:6994469) at com.android.server.am.ActivityManagerShellCommand.onCommand(Ljava/lang/String;)I(libmapleservices.so:7136029) at android.os.ShellCommand.exec(Landroid/os/Binder;Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/lang/String;Landroid/os/ShellCallback;Landroid/os/ResultReceiver;)I(libmapleframework.so:7202205) at com.android.server.am.ActivityManagerService.onShellCommand(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;[Ljava/lang/String;Landroid/os/ShellCallback;Landroid/os/ResultReceiver;)V(libmapleservices.so:7192841) at android.os.Binder.onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z(libmapleframework.so:4130721) at android.app.IActivityManager$Stub.onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z(libmapleframework.so:4752437) at com.android.server.am.ActivityManagerService.onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z(libmapleservices.so:5920045) at com.android.server.am.HwActivityManagerService.onTransact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z(libmaplehwServices.so:3379945) at android.os.Binder.execTransact(IJJI)Z(libmapleframework.so:6087833)'; Code: '255' ``` 在网络上查资料,发现全部的测试安卓系统都是5。如果想测试安卓7以上的系统,应该如何解决??? 谢谢!!
离线安装CDH5.13时,为什么会访问远程的manifest.json
我把parcel、parcel.sha和manifest.json文件都放入了/clourder/parcel-pero中,在安装parcel的时候,是能找到parcel文件的, 但是报了java.net.connectExecption的异常,链接不到外网的manifest,本地的manifest和sha的hash码是匹配的上的,文件也没有问题,不知道为什么不找本地的而去找远程的呢?
使用parcel打包项目后部分js文件还是太大。请问有什么方法能够再压缩一下吗
![图片说明](https://img-ask.csdn.net/upload/201908/14/1565774210_561384.png) 如图:使用parcel打包工具打包后还有近5M,有什么方法能再压缩一下吗
三星盖乐世s6开发时,需要打开三星手机自带的“智能管理器”来引导用户打开“自启动”权限,该怎么实现?
三星盖乐世s6开发时,需要打开三星手机自带的“智能管理器”来引导用户打开“自启动”权限,该怎么实现?我使用如下代码,但是报错了。 ``` super.onStart(); Intent intent = new Intent(); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); if (Build.MANUFACTURER.equals("samsung")) { LogInfo.d("equals samsung"); } ComponentName componentName =new ComponentName("com.samsung.android.sm_cn","com.samsung.android.sm.ui.ram.AutoRunActivity"); intent.setComponent(componentName); startActivity(intent); ``` 报错: ``` 2019-11-13 22:51:49.602 4590-4590/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.intelligentalarmclock, PID: 4590 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.intelligentalarmclock/com.example.intelligentalarmclock.MainActivity}: java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.samsung.android.sm_cn/com.samsung.android.sm.ui.ram.AutoRunActivity launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } } from ProcessRecord{2da72bd 4590:com.example.intelligentalarmclock/u0a178} (pid=4590, uid=10178) not exported from uid 1000 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988) at android.app.ActivityThread.-wrap14(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6682) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) Caused by: java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.samsung.android.sm_cn/com.samsung.android.sm.ui.ram.AutoRunActivity launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } } from ProcessRecord{2da72bd 4590:com.example.intelligentalarmclock/u0a178} (pid=4590, uid=10178) not exported from uid 1000 at android.os.Parcel.readException(Parcel.java:1693) at android.os.Parcel.readException(Parcel.java:1646) at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:3530) at android.app.Instrumentation.execStartActivity(Instrumentation.java:1526) at android.app.Activity.startActivityForResult(Activity.java:4399) at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:767) at android.app.Activity.startActivityForResult(Activity.java:4358) at androidx.fragment.app.FragmentActivity.startActivityForResult(FragmentActivity.java:754) at android.app.Activity.startActivity(Activity.java:4682) at android.app.Activity.startActivity(Activity.java:4650) at com.example.intelligentalarmclock.MainActivity.onStart(MainActivity.java:251) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1256) at android.app.Activity.performStart(Activity.java:6959) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2890) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)  at android.app.ActivityThread.-wrap14(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6682)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)  ``` 这是怎么回事?需要什么权限吗?
关闭Activityandroid.os.Parcel.readException
public class DBHelper extends SQLiteOpenHelper { private static final String DATABASE_PATH_NAME=SDBHelper.DB_DIR+File.separator+"luyou1.db"; private static final int DATABASE_VERSION=1; public DBHelper(Context context) { super(context, DATABASE_PATH_NAME,null, DATABASE_VERSION); } @Override public void onCreate(SQLiteDatabase db) { } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } }
cloudera manager 离线安装安装agent时,向主节点下载资源超时
错误日志: [19/Nov/2018 16:16:04 +0000] 2789 MainThread stacks_collection_manager INFO Using max_uncompressed_file_size_bytes: 5242880 [19/Nov/2018 16:16:04 +0000] 2789 MainThread __init__ INFO Importing metric schema from file /opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/monitor/schema.json [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Supervised processes will add the following to their environment (in addition to the supervisor's env): {'CDH_PARQUET_HOME': '/usr/lib/parquet', 'JSVC_HOME': '/usr/libexec/bigtop-utils', 'CMF_PACKAGE_DIR': '/opt/cloudera-manager/cm-5.10.2/lib64/cmf/service', 'CDH_HADOOP_BIN': '/usr/bin/hadoop', 'MGMT_HOME': '/opt/cloudera-manager/cm-5.10.2/share/cmf', 'CDH_IMPALA_HOME': '/usr/lib/impala', 'CDH_YARN_HOME': '/usr/lib/hadoop-yarn', 'CDH_HDFS_HOME': '/usr/lib/hadoop-hdfs', 'PATH': '/sbin:/usr/sbin:/bin:/usr/bin', 'CDH_HUE_PLUGINS_HOME': '/usr/lib/hadoop', 'CM_STATUS_CODES': u'STATUS_NONE HDFS_DFS_DIR_NOT_EMPTY HBASE_TABLE_DISABLED HBASE_TABLE_ENABLED JOBTRACKER_IN_STANDBY_MODE YARN_RM_IN_STANDBY_MODE', 'KEYTRUSTEE_KP_HOME': '/usr/share/keytrustee-keyprovider', 'CLOUDERA_ORACLE_CONNECTOR_JAR': '/usr/share/java/oracle-connector-java.jar', 'CDH_SQOOP2_HOME': '/usr/lib/sqoop2', 'KEYTRUSTEE_SERVER_HOME': '/usr/lib/keytrustee-server', 'CDH_MR2_HOME': '/usr/lib/hadoop-mapreduce', 'HIVE_DEFAULT_XML': '/etc/hive/conf.dist/hive-default.xml', 'CLOUDERA_POSTGRESQL_JDBC_JAR': '/opt/cloudera-manager/cm-5.10.2/share/cmf/lib/postgresql-9.0-801.jdbc4.jar', 'CDH_KMS_HOME': '/usr/lib/hadoop-kms', 'CDH_HBASE_HOME': '/usr/lib/hbase', 'CDH_SQOOP_HOME': '/usr/lib/sqoop', 'WEBHCAT_DEFAULT_XML': '/etc/hive-webhcat/conf.dist/webhcat-default.xml', 'CDH_OOZIE_HOME': '/usr/lib/oozie', 'CDH_ZOOKEEPER_HOME': '/usr/lib/zookeeper', 'CDH_HUE_HOME': '/usr/lib/hue', 'CLOUDERA_MYSQL_CONNECTOR_JAR': '/usr/share/java/mysql-connector-java.jar', 'CDH_HBASE_INDEXER_HOME': '/usr/lib/hbase-solr', 'CDH_MR1_HOME': '/usr/lib/hadoop-0.20-mapreduce', 'CDH_SOLR_HOME': '/usr/lib/solr', 'CDH_PIG_HOME': '/usr/lib/pig', 'CDH_SENTRY_HOME': '/usr/lib/sentry', 'CDH_CRUNCH_HOME': '/usr/lib/crunch', 'CDH_LLAMA_HOME': '/usr/lib/llama/', 'CDH_HTTPFS_HOME': '/usr/lib/hadoop-httpfs', 'ROOT': '/opt/cloudera-manager/cm-5.10.2/lib64/cmf', 'CDH_HADOOP_HOME': '/usr/lib/hadoop', 'CDH_HIVE_HOME': '/usr/lib/hive', 'ORACLE_HOME': '/usr/share/oracle/instantclient', 'CDH_HCAT_HOME': '/usr/lib/hive-hcatalog', 'CDH_KAFKA_HOME': '/usr/lib/kafka', 'CDH_SPARK_HOME': '/usr/lib/spark', 'TOMCAT_HOME': '/usr/lib/bigtop-tomcat', 'CDH_FLUME_HOME': '/usr/lib/flume-ng'} [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO To override these variables, use /etc/cloudera-scm-agent/config.ini. Environment variables for CDH locations are not used when CDH is installed from parcels. [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Created /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/process [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Chmod'ing /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/process to 0751 [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Created /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/supervisor [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Chmod'ing /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/supervisor to 0751 [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Created /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/flood [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Chowning /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/flood to cloudera-scm (498) cloudera-scm (498) [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Chmod'ing /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/flood to 0751 [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Created /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/supervisor/include [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent INFO Chmod'ing /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/supervisor/include to 0751 [19/Nov/2018 16:16:04 +0000] 2789 MainThread agent ERROR Failed to connect to previous supervisor. Traceback (most recent call last): File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/agent.py", line 2073, in find_or_start_supervisor self.configure_supervisor_clients() File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/agent.py", line 2254, in configure_supervisor_clients supervisor_options.realize(args=["-c", os.path.join(self.supervisor_dir, "supervisord.conf")]) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 1599, in realize Options.realize(self, *arg, **kw) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 333, in realize self.process_config() File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 341, in process_config self.process_config_file(do_usage) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 376, in process_config_file self.usage(str(msg)) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg/supervisor/options.py", line 164, in usage self.exit(2) SystemExit: 2 [19/Nov/2018 16:16:04 +0000] 2789 MainThread tmpfs INFO Successfully mounted tmpfs at /opt/cloudera-manager/cm-5.10.2/run/cloudera-scm-agent/process [19/Nov/2018 16:16:05 +0000] 2789 MainThread agent INFO Trying to connect to newly launched supervisor (Attempt 1) [19/Nov/2018 16:16:05 +0000] 2789 MainThread agent INFO Supervisor version: 3.0, pid: 2821 [19/Nov/2018 16:16:05 +0000] 2789 MainThread agent INFO Successfully connected to supervisor [19/Nov/2018 16:16:05 +0000] 2789 MainThread status_server INFO Using maximum impala profile bundle size of 1073741824 bytes. [19/Nov/2018 16:16:05 +0000] 2789 MainThread status_server INFO Using maximum stacks log bundle size of 1073741824 bytes. [19/Nov/2018 16:16:05 +0000] 2789 MainThread _cplogging INFO [19/Nov/2018:16:16:05] ENGINE Bus STARTING [19/Nov/2018 16:16:05 +0000] 2789 MainThread _cplogging INFO [19/Nov/2018:16:16:05] ENGINE Started monitor thread '_TimeoutMonitor'. [19/Nov/2018 16:16:06 +0000] 2789 MainThread _cplogging INFO [19/Nov/2018:16:16:06] ENGINE Serving on yingzhi01.com:9000 [19/Nov/2018 16:16:06 +0000] 2789 MainThread _cplogging INFO [19/Nov/2018:16:16:06] ENGINE Bus STARTED [19/Nov/2018 16:16:06 +0000] 2789 MainThread __init__ INFO New monitor: (<cmf.monitor.host.HostMonitor object at 0x2990c50>,) [19/Nov/2018 16:16:06 +0000] 2789 MonitorDaemon-Scheduler __init__ INFO Monitor ready to report: ('HostMonitor',) [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Setting default socket timeout to 30 [19/Nov/2018 16:16:06 +0000] 2789 Monitor-HostMonitor network_interfaces INFO NIC iface eth0 doesn't support ETHTOOL (95) [19/Nov/2018 16:16:06 +0000] 2789 Monitor-HostMonitor throttling_logger ERROR Error getting directory attributes for /opt/cloudera-manager/cm-5.10.2/log/cloudera-scm-agent Traceback (most recent call last): File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/monitor/dir_monitor.py", line 90, in _get_directory_attributes name = pwd.getpwuid(uid)[0] KeyError: 'getpwuid(): uid not found: 1106' [19/Nov/2018 16:16:06 +0000] 2789 MainThread heartbeat_tracker INFO HB stats (seconds): num:1 LIFE_MIN:0.22 min:0.22 mean:0.22 max:0.22 LIFE_MAX:0.22 [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO CM server guid: dceeafae-a884-42f1-ba7b-4ee187ef3bef [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Using parcels directory from server provided value: /opt/cloudera/parcels [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent WARNING Expected user root for /opt/cloudera/parcels but was cloudera-scm [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent WARNING Expected group root for /opt/cloudera/parcels but was cloudera-scm [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Created /opt/cloudera/parcel-cache [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Chowning /opt/cloudera/parcel-cache to root (0) root (0) [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Chmod'ing /opt/cloudera/parcel-cache to 0755 [19/Nov/2018 16:16:06 +0000] 2789 MainThread parcel INFO Agent does create users/groups and apply file permissions [19/Nov/2018 16:16:06 +0000] 2789 MainThread downloader INFO Downloader path: /opt/cloudera/parcel-cache [19/Nov/2018 16:16:06 +0000] 2789 MainThread parcel_cache INFO Using /opt/cloudera/parcel-cache for parcel cache [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Flood daemon (re)start attempt [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Created /opt/cloudera/parcels/.flood [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Chowning /opt/cloudera/parcels/.flood to cloudera-scm (498) cloudera-scm (498) [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Chmod'ing /opt/cloudera/parcels/.flood to 0755 [19/Nov/2018 16:16:06 +0000] 2789 MainThread agent INFO Triggering supervisord update. [19/Nov/2018 16:16:36 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:16:36 +0000] 2789 MainThread agent INFO Active parcel list updated; recalculating component info. [19/Nov/2018 16:16:36 +0000] 2789 MainThread throttling_logger WARNING CMF_AGENT_JAVA_HOME environment variable host override will be deprecated in future. JAVA_HOME setting configured from CM server takes precedence over host agent override. Configure JAVA_HOME setting from CM server. [19/Nov/2018 16:16:36 +0000] 2789 MainThread throttling_logger INFO Identified java component java8 with full version JAVA_HOME=/opt/modules/jdk1.8.0_144 java version "1.8.0_144" Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) for requested version . [19/Nov/2018 16:16:36 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.6659779549 [19/Nov/2018 16:16:36 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:16:44 +0000] 2789 Monitor-HostMonitor throttling_logger ERROR Timeout with args ['ntpdc', '-np'] None [19/Nov/2018 16:16:44 +0000] 2789 Monitor-HostMonitor throttling_logger ERROR Failed to collect NTP metrics Traceback (most recent call last): File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/monitor/host/ntp_monitor.py", line 48, in collect self.collect_ntpd() File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/monitor/host/ntp_monitor.py", line 66, in collect_ntpd result, stdout, stderr = self._subprocess_with_timeout(args, self._timeout) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/monitor/host/ntp_monitor.py", line 38, in _subprocess_with_timeout return subprocess_with_timeout(args, timeout) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/subprocess_timeout.py", line 94, in subprocess_with_timeout raise Exception("timeout with args %s" % args) Exception: timeout with args ['ntpdc', '-np'] [19/Nov/2018 16:17:06 +0000] 2789 DnsResolutionMonitor throttling_logger INFO Using java location: '/opt/modules/jdk1.8.0_144/bin/java'. [19/Nov/2018 16:17:06 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:17:06 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1082139015 [19/Nov/2018 16:17:06 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:17:36 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:17:36 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1235852242 [19/Nov/2018 16:17:36 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:18:07 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:18:07 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1040799618 [19/Nov/2018 16:18:07 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:18:37 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:18:37 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1849529743 [19/Nov/2018 16:18:37 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:19:07 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:19:07 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1211960316 [19/Nov/2018 16:19:07 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:19:37 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:19:37 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1215620041 [19/Nov/2018 16:19:37 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:20:01 +0000] 2789 CP Server Thread-4 _cplogging INFO 192.168.164.35 - - [19/Nov/2018:16:20:01] "GET /heartbeat HTTP/1.1" 200 2 "" "NING/1.0" [19/Nov/2018 16:20:04 +0000] 2789 CP Server Thread-5 _cplogging INFO 192.168.164.35 - - [19/Nov/2018:16:20:04] "GET /heartbeat HTTP/1.1" 200 2 "" "NING/1.0" [19/Nov/2018 16:20:07 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:20:07 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1212861538 [19/Nov/2018 16:20:07 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:20:37 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:20:37 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1753029823 [19/Nov/2018 16:20:37 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:20:37 +0000] 2789 Thread-13 downloader INFO Fetching torrent: http://yingzhi01.com:7180/cmf/parcel/download/CDH-5.10.2-1.cdh5.10.2.p0.5-el6.parcel.torrent [19/Nov/2018 16:20:37 +0000] 2789 Thread-13 downloader INFO Starting download of: http://yingzhi01.com:7180/cmf/parcel/download/CDH-5.10.2-1.cdh5.10.2.p0.5-el6.parcel [19/Nov/2018 16:21:07 +0000] 2789 Thread-13 downloader ERROR Unexpected exception during download Traceback (most recent call last): File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/cmf/downloader.py", line 279, in download self.client.AddTorrent(torrent_url) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/flood/util/cmd.py", line 159, in __call__ return self.fn.__get__(self.binding)(*args, **kwargs) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/flood/util/rpc.py", line 68, in <lambda> return lambda *pargs, **kwargs: self._invoke(*pargs, **kwargs) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/flood/util/rpc.py", line 77, in _invoke return rpcClient.requestor.request(self.schema.name, msg) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/flood/util/rpc.py", line 129, in requestor return avro.ipc.Requestor(self.SCHEMA, self.transceiver) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/cmf-5.10.2-py2.6.egg/flood/util/rpc.py", line 125, in transceiver return avro.ipc.HTTPTransceiver(self.server.host, self.server.port) File "/opt/cloudera-manager/cm-5.10.2/lib64/cmf/agent/build/env/lib/python2.6/site-packages/avro-1.6.3-py2.6.egg/avro/ipc.py", line 469, in __init__ self.conn.connect() File "/usr/lib64/python2.6/httplib.py", line 771, in connect self.timeout) File "/usr/lib64/python2.6/socket.py", line 567, in create_connection raise error, msg timeout: timed out [19/Nov/2018 16:21:07 +0000] 2789 Thread-13 downloader INFO Finished download [ url: http://yingzhi01.com:7180/cmf/parcel/download/CDH-5.10.2-1.cdh5.10.2.p0.5-el6.parcel, state: exception, total_bytes: 0, downloaded_bytes: 0, start_time: 2018-11-19 16:20:37, download_end_time: , end_time: 2018-11-19 16:21:07, code: 600, exception_msg: timed out, path: None ] [19/Nov/2018 16:21:07 +0000] 2789 MainThread downloader ERROR Failed rack peer update: timed out [19/Nov/2018 16:21:07 +0000] 2789 MainThread agent WARNING Long HB processing time: 30.1247620583 [19/Nov/2018 16:21:07 +0000] 2789 MainThread agent WARNING Delayed HB: 15s since last [19/Nov/2018 16:21:07 +0000] 2789 Thread-13 downloader INFO Fetching torrent: http://yingzhi01.com:7180/cmf/parcel/download/CDH-5.10.2-1.cdh5.10.2.p0.5-el6.parcel.torrent [19/Nov/2018 16:21:08 +0000] 2789 Thread-13 downloader INFO Starting download of: http://yingzhi01.com:7180/cmf/parcel/download/CDH-5.10.2-1.cdh5.10.2.p0.5-el6.parcel [19/Nov/2018 16:21:38 +0000] 2789 Thread-13 downloader ERROR Unexpected exception during download 然后就是不断重复超时错误求大神指点。。。
andriod中运行登录程序时app退出,求解
12-06 20:01:31.438 12197-13159/? E/ws000﹕ begin call prefClean 12-06 20:01:31.438 12197-13159/? E/ws000﹕ end call prefClean 12-06 20:01:31.968 1964-1998/? E/ProcessStats﹕ Starting service ServiceState{42528fc8 com.oppo.virusdetect.tmsecure.SecureService pkg=com.oppo.virusdetect proc=42528fc8} without owner 12-06 20:01:32.008 12729-12729/? E/ClearRunningAppService﹕ onStartCommand android.intent.action.OPPO_ON_TRIM_MEMORY 12-06 20:01:32.018 12729-13164/? E/ClearRunningAppService﹕ ClearPersisentRunning packageName =com.android.dialer 12-06 20:01:32.018 12729-13164/? E/ClearRunningAppService﹕ ClearPersisentRunning runningAppProcessInfo.pid =13074 12-06 20:01:32.018 12729-13164/? E/ClearRunningAppService﹕ ClearPersisentRunning success 12-06 20:01:32.738 12514-12514/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.788 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.808 12514-12573/? E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #4 Process: com.thinkpad.redemo, PID: 12514 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) at java.lang.Thread.run(Thread.java:841) Caused by: java.lang.NullPointerException at com.thinkpad.redemo.LandActivity.gotoLogin(LandActivity.java:127) at com.thinkpad.redemo.LandActivity.access$300(LandActivity.java:23) at com.thinkpad.redemo.LandActivity$2.doInBackground(LandActivity.java:67) at com.thinkpad.redemo.LandActivity$2.doInBackground(LandActivity.java:55) at android.os.AsyncTask$2.call(AsyncTask.java:288) at java.util.concurrent.FutureTask.run(FutureTask.java:237)             at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)             at java.lang.Thread.run(Thread.java:841) 12-06 20:01:32.818 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.828 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.828 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.848 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.848 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.858 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.858 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.858 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.858 1964-1978/? E/OppoPhoneWindow﹕ OppoPhoneWindow 12-06 20:01:32.868 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.868 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.868 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:32.878 2197-2197/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.018 1964-1977/? E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!! 12-06 20:01:33.028 1964-1977/? E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!! 12-06 20:01:33.038 1964-2089/? E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!! 12-06 20:01:33.038 1964-2089/? E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!! 12-06 20:01:33.038 2271-2271/? E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!! 12-06 20:01:33.038 2271-2271/? E/JavaBinder﹕ !!! FAILED BINDER TRANSACTION !!! 12-06 20:01:33.108 1964-1964/? E/NotificationService﹕ Suppressing notification from package com.qihoo360.mobilesafe by user request. 12-06 20:01:33.658 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.688 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.688 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.688 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.698 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.698 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.698 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.698 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.698 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.708 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.708 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.708 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.738 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.748 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.758 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.758 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.758 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.778 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.778 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.788 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.908 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.918 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.928 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.938 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.968 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:33.988 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:34.618 13183-13183/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:34.918 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:34.928 13165-13165/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.628 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.668 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.668 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.668 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.678 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.678 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.678 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.678 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.688 13226-13226/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:36.708 12729-12729/? E/ClearRunningAppService﹕ onStartCommand android.intent.action.OPPO_ON_TRIM_MEMORY 12-06 20:01:36.708 12729-13240/? E/ClearRunningAppService﹕ ClearPersisentRunning packageName =com.oppo.virusdetect 12-06 20:01:36.708 12729-13240/? E/ClearRunningAppService﹕ ClearPersisentRunning runningAppProcessInfo.pid =13226 12-06 20:01:36.708 12729-13240/? E/ClearRunningAppService﹕ ClearPersisentRunning success 12-06 20:01:36.718 12729-13240/? E/ClearRunningAppService﹕ ClearPersisentRunning packageName =com.android.dialer 12-06 20:01:36.718 12729-13240/? E/ClearRunningAppService﹕ ClearPersisentRunning runningAppProcessInfo.pid =13165 12-06 20:01:36.718 12729-13240/? E/ClearRunningAppService﹕ ClearPersisentRunning success 12-06 20:01:43.128 1964-1964/? E/NotificationService﹕ Suppressing notification from package com.qihoo360.mobilesafe by user request. 12-06 20:01:44.558 12402-12402/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:44.578 12471-12471/? E/Parcel﹕ Reading a NULL string not supported here. 12-06 20:01:44.598 1964-2089/? E/ProcessStats﹕ Starting service ServiceState{42528fc8 com.oppo.virusdetect.tmsecure.SecureService pkg=com.oppo.virusdetect proc=42528fc8} without owner 12-06 20:01:46.588 12402-13262/? E/ws000﹕ begin call prefClean 12-06 20:01:46.588 12402-13262/? E/ws000﹕ end call prefClean 12-06 20:01:46.598 12471-13261/? E/ws000﹕ begin call prefClean 12-06 20:01:46.598 12471-13261/? E/ws000﹕ end call prefClean 12-06 20:01:47.168 1964-1974/? E/ProcessStats﹕ Starting service ServiceState{42528fc8 com.oppo.virusdetect.tmsecure.SecureService pkg=com.oppo.virusdetect proc=42528fc8} without owner 12-06 20:01:47.198 12729-12729/? E/ClearRunningAppService﹕ onStartCommand android.intent.action.OPPO_ON_TRIM_MEMORY 12-06 20:01:47.208 12729-13265/? E/ClearRunningAppService﹕ ClearPersisentRunning packageName =com.android.dialer 12-06 20:01:47.208 12729-13265/? E/ClearRunningAppService﹕ ClearPersisentRunning runningAppProcessInfo.pid =13241 12-06 20:01:47.208 12729-13265/? E/ClearRunningAppService﹕ ClearPersisentRunning success
如何下载手机qq的全部气泡资源?
昨天通过fiddler获取了电脑qq的气泡资源url,形式为http://d3g.qq.com/clubapp/pop/pxxx.zip (其中xxx为数字编号),然后通过修改这个编号即可批量下载。 后来发现电脑qq的气泡分辨率远不如手机qq的,所以又通过fiddler获取了手机qq的气泡资源url,示例如下,可以通过这些url下载相应的文件,但是却无法通过简单的修改编号来批量下载所有资源。有什么解决办法吗? 或者,有没有别的方法获取所有qq气泡? http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.11.config.json/653286354ee142c3b7eeed8975baab41.json.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.12.config.json/633690b044c84ce7a67ebdb8902f985a.json.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.11.static.zip/4f2e1ca336a4404682a4ebbd1f1f89f6.zip.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.11.other.zip/f6dbe606a741473996ee01888dbcf124.zip.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.2116.config.json/05d8e915a1e1420abb3a9dd24c86a324.json.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.6.config.json/bcc9d9a4d74e493d8c8340bd5e431335.json.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.63.config.json/ec27160d0ff144bea14511258a2cb8bf.json.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.233.config.json/a7880a2b5db1427b85c69e4daed418ec.json.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.2116.static.zip/444aed3b8a624f11b5f7ca2af14038ea.zip.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.2116.other.zip/d2f166216075498ea2e921d470431efb.zip.zip http://i.gtimg.cn/club/item/parcel/scupdate/2/bubble.android.6.other.zip/3e1655b5a5de4d64947a84e2ad9138c0.zip.zip
Hexagonal Parcels怎么编写程序
Problem Description A civil engineer that has recently graduated from the Czech Technical University encountered an interesting problem and asked us for a help. The problem is more of economical than engineering nature. The engineer needs to connect several buildings with an infrastructure. Unfortunately, the investor is not the owner of all the land between these places. Therefore, some properties have to be bought first. The land is divided into a regular “grid” of hexagonal parcels, each of them forms an independent unit and has the same value. Some of the parcels belong to the investor. These parcels form four connected areas, each containing one building to be connected with the others. Your task is to find the minimal number of parcels that must be acquired to connect the four given areas. The whole land also has a hexagonal shape with six sides, each consisting of exactly H parcels. The above picture shows a land with H = 4, parcels with letters represent the four areas to be connected. In this case, it is necessary to buy four additional parcels. One of the possible solutions is marked by crosses. Input The input contains several scenarios. Each scenario begins with an integer number H , which specifies the size of the land, 2 ≤ H ≤ 20. Then there are 2H - 1 lines representing individual “rows” of the land (always oriented as in the picture). The lines contain one non-space character for each parcel. It means the first line will contain H characters, the second line H + 1, and so on. The longest line will be the middle one, with 2.H - 1 characters. Then the “length” descends and the last line contains H parcels, again. The character representing a parcel will be either a dot (“ .”) for the land that is not owned by the investor, or one of the uppercase letters “A”, “B”, “C”, or “D”. The areas of parcels occupied by the same letter will always be connected. It means that between any two parcels in the same area, there exists a path leading only through that area. Beside the characters representing parcels, the lines may contain any number of spaces at any positions to improve “human readability” of the input. There is always at least one space between two letters (or the dots). After the land description, there will be one empty line and then the next scenario begins. The last scenario is followed by a line containing zero. Output For each scenario, output one line with the sentence “You have to buy P parcels.”, where P is the minimal number of parcels that must be acquired to make all four areas connected together. Areas are considered connected, if it is possible to find a path between them that leads only through parcels that have been bought. Sample Input 4 B . . C . . . . C . A . . C . . A A . . . . . A . . . . . . . D D . . . . 0 Sample Output You have to buy 4 parcels.
java.lang.SecurityException: Permission denial
其他手机上是好的,但是华为手机上会出现如下错误(后台运行后APP死机) 错误代码先是好多这种错误 07-07 17:52:06.210 1345-18305/? E/DatabaseUtils﹕ Writing exception to parcel java.lang.IllegalArgumentException: Unknown URL content://icc/adn1 at huawei.com.android.internal.telephony.HwIccProviderUtils.query(HwIccProviderUtils.java:192) at huawei.com.android.internal.telephony.HwUiccManagerImpl.simContactsQuery(HwUiccManagerImpl.java:77) at com.android.internal.telephony.IccProvider.query(IccProvider.java:92) at android.content.ContentProvider.query(ContentProvider.java:857) at android.content.ContentProvider$Transport.query(ContentProvider.java:200) at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112) at android.os.Binder.execTransact(Binder.java:404) at dalvik.system.NativeStart.run(Native Method) 完了后好多如下错误 07-07 17:52:31.180 901-1432/? E/DatabaseUtils﹕ Writing exception to parcel java.lang.SecurityException: Permission denial: writing to settings requires android.permission.WRITE_SETTINGS at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:685) at android.content.ContentProvider$Transport.call(ContentProvider.java:325) at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:284) at android.os.Binder.execTransact(Binder.java:404) at dalvik.system.NativeStart.run(Native Method) 不知道怎么回事,貌似与华为手机的后台运行机制有关,不知道怎么解决,求指点
安卓app调用支付宝,在6.0系统上需要动态获取权限么?需要获取什么权限?
如题,在非6.0系统上运行无问题,在6.0系统上支付也能成功,但是log那里打印出了一个异常 06-02 18:46:51.842 24099-25878/com.chaichew.chop W/System.err: java.lang.SecurityException: getDeviceId: Neither user 10206 nor current process has android.permission.READ_PHONE_STATE. 06-02 18:46:51.843 24099-25878/com.chaichew.chop W/System.err: at android.os.Parcel.readException(Parcel.java:1599) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at android.os.Parcel.readException(Parcel.java:1552) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:4175) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:706) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.util.a.<init>(SourceFile:38) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.util.a.a(SourceFile:27) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.tid.b.a(SourceFile:79) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.app.statistic.c.<init>(SourceFile:67) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.app.statistic.a.a(SourceFile:21) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.alipay.sdk.app.PayTask.<init>(SourceFile:57) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at com.chaichew.chop.alipay.AlipayUtil$2.run(AlipayUtil.java:125) 06-02 18:46:51.844 24099-25878/com.chaichew.chop W/System.err: at java.lang.Thread.run(Thread.java:818) 百度了一下这个,说是因为编译的target版本是23,在6.0系统上就要动态获取权限,但是,没做过这个,不知道怎么动态获取,而且支付宝需不需要动态获取权限?需要获取什么权限?求解答,急
谷歌游戏应用堆栈跟踪
在谷歌游戏开发者控制台,经常会出现一些崩溃报告,完全搞不懂什么意思。在我的应用中就没有这样的报告。请好心人给解释一下: java.lang.NullPointerException at android.os.Parcel.readException(Parcel.java:1338) at android.os.Parcel.readException(Parcel.java:1286) at android.speech.tts.ITextToSpeechService$Stub$Proxy.setCallback(ITextToSpeechService.java:573) at android.speech.tts.TextToSpeech$Connection.onServiceConnected(TextToSpeech.java:1278) at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1125) at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1142) at android.os.Handler.handleCallback(Handler.java:605) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:4945) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) at dalvik.system.NativeStart.main(Native Method) 我已经初始化过TTS,我的应用读取文本声音,不知道应该怎么解决这些错误?
cts verify 这个是为啥
adb shell dpm set-device-owner 'com.android.cts.verifier/com.android.cts.verifier.managedprovisioning.DeviceAdminTestReceiver' java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device at android.os.Parcel.readException(Parcel.java:1607) at android.os.Parcel.readException(Parcel.java:1552) at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:3515) at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:114) at com.android.commands.dpm.Dpm.onRun(Dpm.java:82) at com.android.internal.os.BaseCommand.run(BaseCommand.java:47) at com.android.commands.dpm.Dpm.main(Dpm.java:38) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:306)
如何读取手机中相册的图像文件
对于以下的代码片段出现一个问题。实际上我是想读取手机中相册的图片。文件名为image2.jpg ,image3.jpg 的图片。但是报出了错误。 代码是: public static Uri getRandomImage(ContentResolver resolver) { String secondo = "image2.jpg"; String terzo = "image3.jpg"; String quarto = "image4.jpg"; String quinto = "image5.jpg"; String sesto = "image6.jpg"; String settimo = "image7.jpg"; String ottavo = "image8.jpg"; String[] projection = new String[] { BaseColumns._ID, MediaColumns.DATA, }; Uri uri = Media.EXTERNAL_CONTENT_URI; Cursor cursor = Media.query(resolver, uri, projection, null, MediaColumns._ID); if (cursor == null || cursor.getCount() <= 0) { return null; } cursor.moveToPosition(new Random().nextInt(cursor.getCount())); String completefilepath = cursor.getString(cursor.getColumnIndex(MediaColumns.DATA)); if(completefilepath == secondo || completefilepath == terzo || completefilepath == quarto || completefilepath == quinto || completefilepath == sesto || completefilepath == settimo || completefilepath == ottavo){ string = cursor.getString(1); } return Uri.withAppendedPath(uri, string); } LOGCAT: E/AndroidRuntime(9147): FATAL EXCEPTION: main E/AndroidRuntime(9147): java.lang.IllegalStateException: Unknown URL: content://media/external/images/media/null E/AndroidRuntime(9147): at android.os.Parcel.readException(Parcel.java:1268) E/AndroidRuntime(9147): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:160) E/AndroidRuntime(9147): at android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:125) E/AndroidRuntime(9147): at android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:538) E/AndroidRuntime(9147): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:467) E/AndroidRuntime(9147): at android.content.ContentResolver.openFileDescriptor(ContentResolver.java:380) E/AndroidRuntime(9147): at it.bisemanuDEV.slidepuzzle.TileView.getImageFromUri(TileView.java:559) E/AndroidRuntime(9147): at it.bisemanuDEV.slidepuzzle.TileView.newGame(TileView.java:156) E/AndroidRuntime(9147): at it.bisemanuDEV.slidepuzzle.SlidePuzzleActivity.onOptionsItemSelected(SlidePuzzleActivity.java:377) E/AndroidRuntime(9147): at android.app.Activity.onMenuItemSelected(Activity.java:2762) E/AndroidRuntime(9147): at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730) E/AndroidRuntime(9147): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143) E/AndroidRuntime(9147): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855) E/AndroidRuntime(9147): at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:532) E/AndroidRuntime(9147): at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122) E/AndroidRuntime(9147): at android.view.View$PerformClick.run(View.java:8819) E/AndroidRuntime(9147): at android.os.Handler.handleCallback(Handler.java:603) E/AndroidRuntime(9147): at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime(9147): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime(9147): at android.app.ActivityThread.main(ActivityThread.java:4627) E/AndroidRuntime(9147): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(9147): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime(9147): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) E/AndroidRuntime(9147): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) E/AndroidRuntime(9147): at dalvik.system.NativeStart.main(Native Method)
如何理解:在外界有变化的情况下,Parcelable不能很好的保证数据的持续性
android序列化有Parcelable和Serializable两种方式。Serializable方式通过持续化到磁盘实现,Parcelable通过内存实现,但是Parcel可以通过marshall 和 unmarshall方法让Parcelable持续到本地磁盘。网上其他博客说"parcelable不能应用于将数据存储在磁盘上的情况,因为在外界有变化的情况下,Parcelable不能很好的保证数据的持续性。" 1. **句话是什么意思?** 2. **保证数据的持续性是指什么?** 3. **外界有变化又是指的什么?**
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
Linux(服务器编程):15---两种高效的事件处理模式(reactor模式、proactor模式)
前言 同步I/O模型通常用于实现Reactor模式 异步I/O模型则用于实现Proactor模式 最后我们会使用同步I/O方式模拟出Proactor模式 一、Reactor模式 Reactor模式特点 它要求主线程(I/O处理单元)只负责监听文件描述符上是否有事件发生,有的话就立即将时间通知工作线程(逻辑单元)。除此之外,主线程不做任何其他实质性的工作 读写数据,接受新的连接,以及处...
为什么要学数据结构?
一、前言 在可视化化程序设计的今天,借助于集成开发环境可以很快地生成程序,程序设计不再是计算机专业人员的专利。很多人认为,只要掌握几种开发工具就可以成为编程高手,其实,这是一种误解。要想成为一个专业的开发人员,至少需要以下三个条件: 1) 能够熟练地选择和设计各种数据结构和算法 2) 至少要能够熟练地掌握一门程序设计语言 3) 熟知所涉及的相关应用领域的知识 其中,后两个条件比较容易实现,而第一个...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n
进程通信方式总结与盘点
​ 进程通信是指进程之间的信息交换。这里需要和进程同步做一下区分,进程同步控制多个进程按一定顺序执行,进程通信是一种手段,而进程同步是目标。从某方面来讲,进程通信可以解决进程同步问题。 ​ 首先回顾下我们前面博文中讲到的信号量机制,为了实现进程的互斥与同步,需要在进程间交换一定的信息,因此信号量机制也可以被归为进程通信的一种方式,但是也被称为低级进程通信,主要原因为: 效率低:一次只可操作少量的...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
听说了吗?阿里双11作战室竟1根网线都没有
双11不光是购物狂欢节,更是对技术的一次“大考”,对于阿里巴巴企业内部运营的基础保障技术而言,亦是如此。 回溯双11历史,这背后也经历过“小米加步枪”的阶段:作战室从随处是网线,交换机放地上的“一地狼藉”;到如今媲美5G的wifi网速,到现场却看不到一根网线;从当年使用商用AP(无线路由器),让光明顶双11当天断网一分钟,到全部使用阿里自研AP……阿里巴巴企业智能事业部工程师们提供的基础保障...
在阿里,40岁的奋斗姿势
在阿里,40岁的奋斗姿势 在阿里,什么样的年纪可以称为老呢?35岁? 在云网络,有这样一群人,他们的平均年龄接近40,却刚刚开辟职业生涯的第二战场。 他们的奋斗姿势是什么样的呢? 洛神赋 “翩若惊鸿,婉若游龙。荣曜秋菊,华茂春松。髣髴兮若轻云之蔽月,飘飖兮若流风之回雪。远而望之,皎若太阳升朝霞;迫而察之,灼若芙蕖出渌波。” 爱洛神,爱阿里云 2018年,阿里云网络产品部门启动洛神2.0升...
关于研发效能提升的思考
研发效能提升是最近比较热门的一个话题,本人根据这几年的工作心得,做了一些思考总结,由于个人深度有限,暂且抛转引入。 三要素 任何生产力的提升都离不开这三个因素:人、流程和工具,少了其中任何一个因素都无法实现。 人,即思想,也就是古人说的“道”,道不同不相为谋,是制高点,也是高层建筑的基石。 流程,即方法,也是古人说的“法”。研发效能的提升,也就是要提高投入产出比,既要增加产出,也要减...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆  每天早上8:30推送 作者| Mr.K   编辑| Emma 来源| 技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯
程序员该看的几部电影
##1、骇客帝国(1999) 概念:在线/离线,递归,循环,矩阵等 剧情简介: 不久的将来,网络黑客尼奥对这个看似正常的现实世界产生了怀疑。 他结识了黑客崔妮蒂,并见到了黑客组织的首领墨菲斯。 墨菲斯告诉他,现实世界其实是由一个名叫“母体”的计算机人工智能系统控制,人们就像他们饲养的动物,没有自由和思想,而尼奥就是能够拯救人类的救世主。 可是,救赎之路从来都不会一帆风顺,到底哪里才是真实的世界?
入职阿里5年,他如何破解“技术债”?
简介: 作者 | 都铎 作为一名技术人,你常常会听到这样的话: “先快速上线” “没时间改” “再缓一缓吧” “以后再解决” “先用临时方案处理” …… 当你埋下的坑越来越多,不知道哪天哪位同学就会踩上一颗雷。特别赞同“人最大的恐惧就是未知,当技术债可说不可见的时候,才是最让人不想解决的时候。” 作为一个程序员,我们反对复制粘贴,但是我们经常会见到相似的代码,相同的二方包,甚至整个代码...
Python绘图,圣诞树,花,爱心 | Turtle篇
每周每日,分享Python实战代码,入门资料,进阶资料,基础语法,爬虫,数据分析,web网站,机器学习,深度学习等等。 公众号回复【进群】沟通交流吧,QQ扫码进群学习吧 微信群 QQ群 1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle()...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布了 2019年国民经济报告 ,报告中指出:年末中国大陆总人口(包括31个
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
2020年的1月,我辞掉了我的第一份工作
其实,这篇文章,我应该早点写的,毕竟现在已经2月份了。不过一些其它原因,或者是我的惰性、还有一些迷茫的念头,让自己迟迟没有试着写一点东西,记录下,或者说是总结下自己前3年的工作上的经历、学习的过程。 我自己知道的,在写自己的博客方面,我的文笔很一般,非技术类的文章不想去写;另外我又是一个还比较热衷于技术的人,而平常复杂一点的东西,如果想写文章写的清楚点,是需要足够...
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
Java坑人面试题系列: 包装类(中级难度)
Java Magazine上面有一个专门坑人的面试题系列: https://blogs.oracle.com/javamagazine/quiz-2。 这些问题的设计宗旨,主要是测试面试者对Java语言的了解程度,而不是为了用弯弯绕绕的手段把面试者搞蒙。 如果你看过往期的问题,就会发现每一个都不简单。 这些试题模拟了认证考试中的一些难题。 而 “中级(intermediate)” 和 “高级(ad
深度学习入门笔记(十八):卷积神经网络(一)
欢迎关注WX公众号:【程序员管小亮】 专栏——深度学习入门笔记 声明 1)该文章整理自网上的大牛和机器学习专家无私奉献的资料,具体引用的资料请看参考文献。 2)本文仅供学术交流,非商用。所以每一部分具体的参考资料并没有详细对应。如果某部分不小心侵犯了大家的利益,还望海涵,并联系博主删除。 3)博主才疏学浅,文中如有不当之处,请各位指出,共同进步,谢谢。 4)此属于第一版本,若有错误,还需继续修正与...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。 再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。 下文是原回答,希望能对你能有所启发。 如果我说,这个世界上人真的分三六九等,...
节后首个工作日,企业们集体开晨会让钉钉挂了
By 超神经场景描述:昨天 2 月 3 日,是大部分城市号召远程工作的第一天,全国有接近 2 亿人在家开始远程办公,钉钉上也有超过 1000 万家企业活跃起来。关键词:十一出行 人脸...
Java基础知识点梳理
Java基础知识点梳理 摘要: 虽然已经在实际工作中经常与java打交道,但是一直没系统地对java这门语言进行梳理和总结,掌握的知识也比较零散。恰好利用这段时间重新认识下java,并对一些常见的语法和知识点做个总结与回顾,一方面为了加深印象,方便后面查阅,一方面为了学好java打下基础。 Java简介 java语言于1995年正式推出,最开始被命名为Oak语言,由James Gosling(詹姆
2020年全新Java学习路线图,含配套视频,学完即为中级Java程序员!!
新的一年来临,突如其来的疫情打破了平静的生活! 在家的你是否很无聊,如果无聊就来学习吧! 世上只有一种投资只赚不赔,那就是学习!!! 传智播客于2020年升级了Java学习线路图,硬核升级,免费放送! 学完你就是中级程序员,能更快一步找到工作! 一、Java基础 JavaSE基础是Java中级程序员的起点,是帮助你从小白到懂得编程的必经之路。 在Java基础板块中有6个子模块的学
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
你也能看懂的:蒙特卡罗方法
蒙特卡罗方法,也称统计模拟方法,是1940年代中期由于科学技术的发展和电子计算机的发明,而提出的一种以概率统计理论为指导的数值计算方法。是指使用随机数(或更常见的伪随机数)来解决很多计算问题的方法 蒙特卡罗方法可以粗略地分成两类:一类是所求解的问题本身具有内在的随机性,借助计算机的运算能力可以直接模拟这种随机的过程。另一种类型是所求解问题可以转化为某种随机分布的特征数,比如随机事件出现的概率,或...
相关热词 c# 识别回车 c#生成条形码ean13 c#子控制器调用父控制器 c# 写大文件 c# 浏览pdf c#获取桌面图标的句柄 c# list反射 c# 句柄 进程 c# 倒计时 线程 c# 窗体背景色
立即提问